{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}E:\Github\Bolivia\00_replication_files\log-files/2_Figure_B1.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}25 Jan 2022, 21:40:03
{txt}
{com}. 
. timer on 2
{txt}
{com}. 
. *------------*
. * Figure B.1 *
. *------------*
.         * Producing estimates: this list refers to what to do with the 377
.         * obs with missing transmission dates
.         foreach c in MAX MIN MEDIAN DROPPED NOTRIMMING {c -(}
{txt}  2{com}.                 * Master data
.                 use "data/outputs/computo_ulttranstrepdate_missingsatmunmedian.dta", clear
{txt}  3{com}. 
.                 * Switch trep date from global max to missing
.                 replace trep_date_ulttrans = . if trep_missing_date == 1
{txt}  4{com}. 
.                 * Replace or drop missing dates
.                 if "`c'" == "MIN" {c -(}
{txt}  5{com}.                         bys Pais Dep Prov Muni: egen min_date = min(trep_date_ulttrans)
{txt}  6{com}.                         replace trep_date_ulttrans = min_date if trep_missing_date == 1
{txt}  7{com}.                         drop min_date
{txt}  8{com}.                 {c )-}
{txt}  9{com}.                 else if "`c'" == "MAX" {c -(}
{txt} 10{com}.                         bys Pais Dep Prov Muni: egen max_date = max(trep_date_ulttrans)
{txt} 11{com}.                         replace trep_date_ulttrans = max_date if trep_missing_date == 1
{txt} 12{com}.                         drop max_date
{txt} 13{com}.                 {c )-}
{txt} 14{com}.                 else if "`c'" == "MEDIAN" {c -(}
{txt} 15{com}.                         bys Pais Dep Prov Muni: egen median_date = median(trep_date_ulttrans)
{txt} 16{com}.                         replace trep_date_ulttrans = median_date if trep_missing_date == 1
{txt} 17{com}.                         drop median_date
{txt} 18{com}.                 {c )-}
{txt} 19{com}.                 else if "`c'" == "DROPPED" {c -(}
{txt} 20{com}.                         drop if trep_missing_date == 1
{txt} 21{com}.                 {c )-}
{txt} 22{com}. 
.                 * Trimming: yes or no
.                 if "`c'" != "NOTRIMMING" {c -(}
{txt} 23{com}.                         * Trimming
.                         cumul trep_date_ulttrans, gen(cum_date)
{txt} 24{com}.                         drop if cum_date <= 0.02 | cum_date >= 0.98
{txt} 25{com}.                         drop cum_date
{txt} 26{com}. 
.                         local filename = "semipar_WITH_trimming_missings`c'"
{txt} 27{com}.                 {c )-}
{txt} 28{com}.                 else {c -(}
{txt} 29{com}.                         * Replacing missing dates at the maximum of the municipality
.                         bys Pais Dep Prov Muni: egen max_date = max(trep_date_ulttrans)
{txt} 30{com}.                         replace trep_date_ulttrans = max_date if trep_missing_date == 1
{txt} 31{com}.                         drop max_date   
{txt} 32{com}. 
.                         local filename = "semipar_WITHOUT_trimming_missingsMAX"
{txt} 33{com}.                 {c )-}
{txt} 34{com}. 
.                 * Margin
.                 gen mmargin_nbnn_so = mshare_nbnn_so - cshare_nbnn_so
{txt} 35{com}. 
.                 * Without this, Stata can't calculate the right ROT bandwidth
.                 su trep_date_ulttrans, d
{txt} 36{com}.                 local global_mean = r(mean)
{txt} 37{com}.                 local global_sd = r(sd)
{txt} 38{com}.                 gen trep_date_ulttrans_norm = (trep_date_ulttrans - `global_mean') / `global_sd'
{txt} 39{com}. 
.                 * Restrict to regression sample
.                 quietly reg mmargin_nbnn_so $controls_educ trep_date_ulttrans_norm
{txt} 40{com}.                 keep if e(sample)
{txt} 41{com}. 
.                 * Binned data using binsreg and all booths
.                 binsreg mmargin_nbnn_so trep_date_ulttrans_norm, ///
>                         savedata(temp) replace
{txt} 42{com}. 
.                 * Tack binned data output on to the end of the main data set    
.                 gen dots_binid = _n
{txt} 43{com}.                 merge 1:1 dots_binid using "temp.dta"
{txt} 44{com}.                 drop _merge
{txt} 45{com}.                 erase "temp.dta"
{txt} 46{com}. 
.                 * Semiparametric Robinson estimate
.                 semipar mmargin_nbnn_so $controls_educ, ///
>                         nonpar(trep_date_ulttrans_norm) nograph generate(yhat) partial(yhat_parout1)
{txt} 47{com}. 
.                 * Optimal bins for the partialled-out DV        
.                 binsreg yhat_parout1 trep_date_ulttrans_norm, ///
>                         savedata(temp) replace
{txt} 48{com}. 
.                 * Rename to make room for the new bin locations and binned means
.                 drop dots_isknot
{txt} 49{com}.                 rename dots_x dots_x_nocontrols
{txt} 50{com}.                 rename dots_fit dots_fit_nocontrols
{txt} 51{com}. 
.                 * Merge new bin locations and binned means
.                 merge 1:1 dots_binid using "temp.dta"
{txt} 52{com}.                 drop _merge
{txt} 53{com}.                 erase "temp.dta"
{txt} 54{com}. 
.                 * lp robust: partialed out
.                 lprobust yhat_parout1 trep_date_ulttrans_norm, ///
>                         genvars eval(dots_x)
{txt} 55{com}. 
.                 renvars lprobust_eval - lprobust_CI_r_rb, postfix(_controls)    
{txt} 56{com}.                         
.                 * lp robust: no controls        
.                 lprobust mmargin_nbnn_so trep_date_ulttrans_norm, ///
>                         genvars eval(dots_x_nocontrols)
{txt} 57{com}. 
.                 compress
{txt} 58{com}.                 saveold "data/outputs//`filename'.dta", replace
{txt} 59{com}.         {c )-}
{txt}(373 real changes made, 373 to missing)
(4 missing values generated)
(373 real changes made)
(1,387 observations deleted)
(1 missing value generated)

                Last transmission time stamp
{hline 61}
      Percentiles      Smallest
 1%    {res} 1.89e+12       1.89e+12
{txt} 5%    {res} 1.89e+12       1.89e+12
{txt}10%    {res} 1.89e+12       1.89e+12       {txt}Obs         {res}     33,168
{txt}25%    {res} 1.89e+12       1.89e+12       {txt}Sum of Wgt. {res}     33,168

{txt}50%    {res} 1.89e+12                      {txt}Mean          {res} 1.89e+12
                        {txt}Largest       Std. Dev.     {res}  2544261
{txt}75%    {res} 1.89e+12       1.89e+12
{txt}90%    {res} 1.89e+12       1.89e+12       {txt}Variance      {res} 6.47e+12
{txt}95%    {res} 1.89e+12       1.89e+12       {txt}Skewness      {res} .1821189
{txt}99%    {res} 1.89e+12       1.89e+12       {txt}Kurtosis      {res} 2.853456
{txt}(1,126 observations deleted)
Sorting dataset on trep_date_ulttrans_norm...
Note: This step is omitted if dataset already sorted by trep_date_ulttrans_norm.
{res}
{txt}Binscatter plot
Bin selection method: IMSE-optimal plug-in choice
Placement: Quantile-spaced
Derivative: 0
Output file: temp.dta

{hline 30}{c TT}{hline 15}
{lalign 1:# of observations}{col 30} {c |} {col 32}{res}  32042
{txt}{lalign 1:# of distinct values}{col 30} {c |} {col 32}{res}  10054
{txt}{lalign 1:# of clusters}{col 30} {c |} {col 32}{res}      .
{txt}{hline 30}{c +}{hline 15}
{lalign 1:Bin selection:}{col 30} {c |} 
{ralign 29:Degree of polynomial}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of smoothness constraints}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of bins}{col 30} {c |} {col 32}{res}     43
{txt}{hline 30}{c BT}{hline 15}

{hline 9}{c TT}{hline 30}
{col 10}{c |}{col 17}p{col 25}s{col 33}df
{hline 9}{c +}{hline 30}
{lalign 1: dots}{col 10}{c |}{col 17}0{col 25}0{col 33}43
{hline 9}{c BT}{hline 30}
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}          31,999
{txt}{col 9}from master{col 30}{res}          31,999{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}matched{col 30}{res}              43{txt}  (_merge==3)
{col 5}{hline 41}

{col 55} Number of obs ={res}   32042
{txt}{col 55} R-squared     ={res}  0.5279
{txt}{col 55} Adj R-squared ={res}  0.5277
{txt}{col 55} Root MSE      ={res}  0.3004
{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}mmargin_nbnn_so{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      t{col 49}   P>|t|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}ln_density {c |}{col 17}{res}{space 2}-.1178279{col 29}{space 2} .0021276{col 40}{space 1}  -55.38{col 49}{space 3}0.000{col 57}{space 4}-.1219982{col 70}{space 3}-.1136577
{txt}{space 5}ln_aglabor {c |}{col 17}{res}{space 2}-.1086301{col 29}{space 2} .0047992{col 40}{space 1}  -22.63{col 49}{space 3}0.000{col 57}{space 4}-.1180368{col 70}{space 3}-.0992234
{txt}{space 9}logpop {c |}{col 17}{res}{space 2} .0710593{col 29}{space 2} .0030467{col 40}{space 1}   23.32{col 49}{space 3}0.000{col 57}{space 4} .0650877{col 70}{space 3} .0770309
{txt}ln_dist_capital {c |}{col 17}{res}{space 2}-.0452188{col 29}{space 2} .0035329{col 40}{space 1}  -12.80{col 49}{space 3}0.000{col 57}{space 4}-.0521433{col 70}{space 3}-.0382943
{txt}{space 2}capital_depto {c |}{col 17}{res}{space 2}-.4098264{col 29}{space 2} .0153194{col 40}{space 1}  -26.75{col 49}{space 3}0.000{col 57}{space 4} -.439853{col 70}{space 3}-.3797998
{txt}{space 6}medialuna {c |}{col 17}{res}{space 2}-.2952935{col 29}{space 2} .0047356{col 40}{space 1}  -62.36{col 49}{space 3}0.000{col 57}{space 4}-.3045754{col 70}{space 3}-.2860115
{txt}{space 6}Inscritos {c |}{col 17}{res}{space 2}-.0000478{col 29}{space 2} .0000519{col 40}{space 1}   -0.92{col 49}{space 3}0.358{col 57}{space 4}-.0001496{col 70}{space 3}  .000054
{txt}{space 2}analfabetismo {c |}{col 17}{res}{space 2} .0087938{col 29}{space 2} .0008052{col 40}{space 1}   10.92{col 49}{space 3}0.000{col 57}{space 4} .0072156{col 70}{space 3} .0103719
{txt}{space 8}ed_prim {c |}{col 17}{res}{space 2} .0184229{col 29}{space 2} .0005087{col 40}{space 1}   36.22{col 49}{space 3}0.000{col 57}{space 4} .0174259{col 70}{space 3} .0194199
{txt}{space 9}ed_sec {c |}{col 17}{res}{space 2} .0054411{col 29}{space 2} .0004491{col 40}{space 1}   12.12{col 49}{space 3}0.000{col 57}{space 4}  .004561{col 70}{space 3} .0063213
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}Sorting dataset on trep_date_ulttrans_norm...
Note: This step is omitted if dataset already sorted by trep_date_ulttrans_norm.
{res}
{txt}Binscatter plot
Bin selection method: IMSE-optimal plug-in choice
Placement: Quantile-spaced
Derivative: 0
Output file: temp.dta

{hline 30}{c TT}{hline 15}
{lalign 1:# of observations}{col 30} {c |} {col 32}{res}  32042
{txt}{lalign 1:# of distinct values}{col 30} {c |} {col 32}{res}  10054
{txt}{lalign 1:# of clusters}{col 30} {c |} {col 32}{res}      .
{txt}{hline 30}{c +}{hline 15}
{lalign 1:Bin selection:}{col 30} {c |} 
{ralign 29:Degree of polynomial}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of smoothness constraints}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of bins}{col 30} {c |} {col 32}{res}     28
{txt}{hline 30}{c BT}{hline 15}

{hline 9}{c TT}{hline 30}
{col 10}{c |}{col 17}p{col 25}s{col 33}df
{hline 9}{c +}{hline 30}
{lalign 1: dots}{col 10}{c |}{col 17}0{col 25}0{col 33}28
{hline 9}{c BT}{hline 30}
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}          32,014
{txt}{col 9}from master{col 30}{res}          32,014{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}matched{col 30}{res}              28{txt}  (_merge==3)
{col 5}{hline 41}
{res}
Local Polynomial Regression Estimation and Inference.

{txt}{lalign 1: Sample size                              (n=)    }{col 19}{res}          32042
{txt}{lalign 1: Polynomial order for point estimation    (p=)    }{col 19}{res}              1
{txt}{lalign 1: Order of derivative estimated            (v=)    }{col 19}{res}              0
{txt}{lalign 1: Polynomial order for confidence interval (q=)    }{col 19}{res}              2
{txt}{lalign 1: Kernel function                                  }{col 19}{res}{ralign 15: Epanechnikov}
{txt}{lalign 1: Bandwidth selection method                       }{col 19}{res}{ralign 15: imse-dpi}

{txt}{hline 72}
{ralign 4: }{col 4}{ralign 10: }{col 14}{ralign 10: }{col 24}{ralign 8: }{col 32}{ralign 10: Point}{col 42}{ralign 10: Std.}{col 52}{ralign 20: Robust B.C.}{col 72}
{ralign 4: }{col 4}{ralign 10: eval}{col 14}{ralign 10: bw}{col 24}{ralign 8: Eff.n}{col 32}{ralign 10: Est.}{col 42}{ralign 10: Error}{col 52}{ralign 20: 95% Conf. Interval}{col 72}
{hline 72}
   1{col 4}{res}   -2.0173{col 14}    1.3771{col 24}    8305{col 32}    0.0372{col 42}    0.0084{col 52}    0.0208{col 62}    0.0537{col 72}
{txt}   2{col 4}{res}   -1.4951{col 14}    1.3771{col 24}   14953{col 32}    0.0431{col 42}    0.0044{col 52}    0.0295{col 62}    0.0471{col 72}
{txt}   3{col 4}{res}   -1.2560{col 14}    1.3771{col 24}   17968{col 32}    0.0529{col 42}    0.0035{col 52}    0.0431{col 62}    0.0576{col 72}
{txt}   4{col 4}{res}   -1.0894{col 14}    1.3771{col 24}   19898{col 32}    0.0608{col 42}    0.0030{col 52}    0.0535{col 62}    0.0666{col 72}
{txt}   5{col 4}{res}   -0.9520{col 14}    1.3771{col 24}   21397{col 32}    0.0677{col 42}    0.0027{col 52}    0.0621{col 62}    0.0743{col 72}
{txt}{hline 72}
   6{col 4}{res}   -0.8304{col 14}    1.3771{col 24}   22578{col 32}    0.0740{col 42}    0.0025{col 52}    0.0698{col 62}    0.0814{col 72}
{txt}   7{col 4}{res}   -0.7172{col 14}    1.3771{col 24}   23561{col 32}    0.0797{col 42}    0.0023{col 52}    0.0770{col 62}    0.0882{col 72}
{txt}   8{col 4}{res}   -0.6160{col 14}    1.3771{col 24}   24345{col 32}    0.0847{col 42}    0.0022{col 52}    0.0832{col 62}    0.0940{col 72}
{txt}   9{col 4}{res}   -0.5181{col 14}    1.3771{col 24}   25031{col 32}    0.0894{col 42}    0.0021{col 52}    0.0888{col 62}    0.0994{col 72}
{txt}  10{col 4}{res}   -0.4266{col 14}    1.3771{col 24}   25583{col 32}    0.0937{col 42}    0.0020{col 52}    0.0936{col 62}    0.1040{col 72}
{txt}{hline 72}
  11{col 4}{res}   -0.3385{col 14}    1.3771{col 24}   26049{col 32}    0.0978{col 42}    0.0020{col 52}    0.0976{col 62}    0.1079{col 72}
{txt}  12{col 4}{res}   -0.2520{col 14}    1.3771{col 24}   26363{col 32}    0.1017{col 42}    0.0019{col 52}    0.1015{col 62}    0.1117{col 72}
{txt}  13{col 4}{res}   -0.1664{col 14}    1.3771{col 24}   26633{col 32}    0.1053{col 42}    0.0019{col 52}    0.1051{col 62}    0.1152{col 72}
{txt}  14{col 4}{res}   -0.0803{col 14}    1.3771{col 24}   26767{col 32}    0.1087{col 42}    0.0019{col 52}    0.1084{col 62}    0.1185{col 72}
{txt}  15{col 4}{res}    0.0100{col 14}    1.3771{col 24}   26789{col 32}    0.1120{col 42}    0.0019{col 52}    0.1117{col 62}    0.1218{col 72}
{txt}{hline 72}
  16{col 4}{res}    0.1006{col 14}    1.3771{col 24}   26716{col 32}    0.1152{col 42}    0.0019{col 52}    0.1144{col 62}    0.1246{col 72}
{txt}  17{col 4}{res}    0.1937{col 14}    1.3771{col 24}   26480{col 32}    0.1183{col 42}    0.0020{col 52}    0.1168{col 62}    0.1272{col 72}
{txt}  18{col 4}{res}    0.2888{col 14}    1.3771{col 24}   26135{col 32}    0.1213{col 42}    0.0020{col 52}    0.1189{col 62}    0.1295{col 72}
{txt}  19{col 4}{res}    0.3871{col 14}    1.3771{col 24}   25620{col 32}    0.1244{col 42}    0.0021{col 52}    0.1207{col 62}    0.1315{col 72}
{txt}  20{col 4}{res}    0.4919{col 14}    1.3771{col 24}   25008{col 32}    0.1277{col 42}    0.0021{col 52}    0.1225{col 62}    0.1336{col 72}
{txt}{hline 72}
  21{col 4}{res}    0.6086{col 14}    1.3771{col 24}   24144{col 32}    0.1315{col 42}    0.0023{col 52}    0.1247{col 62}    0.1362{col 72}
{txt}  22{col 4}{res}    0.7329{col 14}    1.3771{col 24}   23049{col 32}    0.1354{col 42}    0.0024{col 52}    0.1278{col 62}    0.1398{col 72}
{txt}  23{col 4}{res}    0.8677{col 14}    1.3771{col 24}   21679{col 32}    0.1400{col 42}    0.0025{col 52}    0.1313{col 62}    0.1439{col 72}
{txt}  24{col 4}{res}    1.0175{col 14}    1.3771{col 24}   19942{col 32}    0.1453{col 42}    0.0028{col 52}    0.1357{col 62}    0.1490{col 72}
{txt}  25{col 4}{res}    1.1979{col 14}    1.3771{col 24}   17703{col 32}    0.1516{col 42}    0.0031{col 52}    0.1412{col 62}    0.1557{col 72}
{txt}{hline 72}
  26{col 4}{res}    1.4229{col 14}    1.3771{col 24}   14918{col 32}    0.1593{col 42}    0.0036{col 52}    0.1487{col 62}    0.1651{col 72}
{txt}  27{col 4}{res}    1.7298{col 14}    1.3771{col 24}   11261{col 32}    0.1694{col 42}    0.0045{col 52}    0.1617{col 62}    0.1814{col 72}
{txt}  28{col 4}{res}    2.2793{col 14}    1.3771{col 24}    6010{col 32}    0.1831{col 42}    0.0078{col 52}    0.1698{col 62}    0.2004{col 72}
{txt}{hline 72}
{res}
Local Polynomial Regression Estimation and Inference.

{txt}{lalign 1: Sample size                              (n=)    }{col 19}{res}          32042
{txt}{lalign 1: Polynomial order for point estimation    (p=)    }{col 19}{res}              1
{txt}{lalign 1: Order of derivative estimated            (v=)    }{col 19}{res}              0
{txt}{lalign 1: Polynomial order for confidence interval (q=)    }{col 19}{res}              2
{txt}{lalign 1: Kernel function                                  }{col 19}{res}{ralign 15: Epanechnikov}
{txt}{lalign 1: Bandwidth selection method                       }{col 19}{res}{ralign 15: imse-dpi}

{txt}{hline 72}
{ralign 4: }{col 4}{ralign 10: }{col 14}{ralign 10: }{col 24}{ralign 8: }{col 32}{ralign 10: Point}{col 42}{ralign 10: Std.}{col 52}{ralign 20: Robust B.C.}{col 72}
{ralign 4: }{col 4}{ralign 10: eval}{col 14}{ralign 10: bw}{col 24}{ralign 8: Eff.n}{col 32}{ralign 10: Est.}{col 42}{ralign 10: Error}{col 52}{ralign 20: 95% Conf. Interval}{col 72}
{hline 72}
   1{col 4}{res}   -2.1634{col 14}    0.8026{col 24}    2259{col 32}    0.1368{col 42}    0.0174{col 52}    0.1053{col 62}    0.1820{col 72}
{txt}   2{col 4}{res}   -1.6784{col 14}    0.8026{col 24}    5746{col 32}    0.0406{col 42}    0.0099{col 52}    0.0032{col 62}    0.0486{col 72}
{txt}   3{col 4}{res}   -1.4524{col 14}    0.8026{col 24}    7940{col 32}    0.0128{col 42}    0.0077{col 52}   -0.0226{col 62}    0.0129{col 72}
{txt}   4{col 4}{res}   -1.2971{col 14}    0.8026{col 24}    9638{col 32}    0.0035{col 42}    0.0064{col 52}   -0.0286{col 62}    0.0019{col 72}
{txt}   5{col 4}{res}   -1.1788{col 14}    0.8026{col 24}   10995{col 32}    0.0016{col 42}    0.0057{col 52}   -0.0272{col 62}    0.0003{col 72}
{txt}{hline 72}
   6{col 4}{res}   -1.0765{col 14}    0.8026{col 24}   12209{col 32}    0.0042{col 42}    0.0052{col 52}   -0.0215{col 62}    0.0040{col 72}
{txt}   7{col 4}{res}   -0.9869{col 14}    0.8026{col 24}   13220{col 32}    0.0090{col 42}    0.0048{col 52}   -0.0131{col 62}    0.0109{col 72}
{txt}   8{col 4}{res}   -0.9027{col 14}    0.8026{col 24}   14187{col 32}    0.0149{col 42}    0.0045{col 52}   -0.0038{col 62}    0.0192{col 72}
{txt}   9{col 4}{res}   -0.8260{col 14}    0.8026{col 24}   14905{col 32}    0.0213{col 42}    0.0042{col 52}    0.0046{col 62}    0.0266{col 72}
{txt}  10{col 4}{res}   -0.7517{col 14}    0.8026{col 24}   15658{col 32}    0.0280{col 42}    0.0040{col 52}    0.0137{col 62}    0.0351{col 72}
{txt}{hline 72}
  11{col 4}{res}   -0.6818{col 14}    0.8026{col 24}   16277{col 32}    0.0344{col 42}    0.0039{col 52}    0.0226{col 62}    0.0433{col 72}
{txt}  12{col 4}{res}   -0.6166{col 14}    0.8026{col 24}   16772{col 32}    0.0405{col 42}    0.0038{col 52}    0.0310{col 62}    0.0513{col 72}
{txt}  13{col 4}{res}   -0.5521{col 14}    0.8026{col 24}   17277{col 32}    0.0468{col 42}    0.0037{col 52}    0.0392{col 62}    0.0590{col 72}
{txt}  14{col 4}{res}   -0.4914{col 14}    0.8026{col 24}   17672{col 32}    0.0531{col 42}    0.0036{col 52}    0.0458{col 62}    0.0653{col 72}
{txt}  15{col 4}{res}   -0.4317{col 14}    0.8026{col 24}   17999{col 32}    0.0594{col 42}    0.0035{col 52}    0.0523{col 62}    0.0714{col 72}
{txt}{hline 72}
  16{col 4}{res}   -0.3736{col 14}    0.8026{col 24}   18299{col 32}    0.0656{col 42}    0.0035{col 52}    0.0584{col 62}    0.0774{col 72}
{txt}  17{col 4}{res}   -0.3174{col 14}    0.8026{col 24}   18507{col 32}    0.0717{col 42}    0.0034{col 52}    0.0643{col 62}    0.0831{col 72}
{txt}  18{col 4}{res}   -0.2611{col 14}    0.8026{col 24}   18606{col 32}    0.0777{col 42}    0.0034{col 52}    0.0698{col 62}    0.0884{col 72}
{txt}  19{col 4}{res}   -0.2036{col 14}    0.8026{col 24}   18689{col 32}    0.0838{col 42}    0.0034{col 52}    0.0753{col 62}    0.0938{col 72}
{txt}  20{col 4}{res}   -0.1501{col 14}    0.8026{col 24}   18744{col 32}    0.0893{col 42}    0.0034{col 52}    0.0802{col 62}    0.0987{col 72}
{txt}{hline 72}
  21{col 4}{res}   -0.0940{col 14}    0.8026{col 24}   18766{col 32}    0.0951{col 42}    0.0033{col 52}    0.0854{col 62}    0.1039{col 72}
{txt}  22{col 4}{res}   -0.0349{col 14}    0.8026{col 24}   18694{col 32}    0.1009{col 42}    0.0034{col 52}    0.0914{col 62}    0.1099{col 72}
{txt}  23{col 4}{res}    0.0237{col 14}    0.8026{col 24}   18595{col 32}    0.1067{col 42}    0.0034{col 52}    0.0971{col 62}    0.1156{col 72}
{txt}  24{col 4}{res}    0.0820{col 14}    0.8026{col 24}   18513{col 32}    0.1124{col 42}    0.0034{col 52}    0.1023{col 62}    0.1209{col 72}
{txt}  25{col 4}{res}    0.1425{col 14}    0.8026{col 24}   18273{col 32}    0.1182{col 42}    0.0034{col 52}    0.1082{col 62}    0.1270{col 72}
{txt}{hline 72}
  26{col 4}{res}    0.2036{col 14}    0.8026{col 24}   18048{col 32}    0.1240{col 42}    0.0034{col 52}    0.1141{col 62}    0.1331{col 72}
{txt}  27{col 4}{res}    0.2660{col 14}    0.8026{col 24}   17754{col 32}    0.1299{col 42}    0.0035{col 52}    0.1208{col 62}    0.1400{col 72}
{txt}  28{col 4}{res}    0.3279{col 14}    0.8026{col 24}   17372{col 32}    0.1353{col 42}    0.0035{col 52}    0.1279{col 62}    0.1474{col 72}
{txt}  29{col 4}{res}    0.3934{col 14}    0.8026{col 24}   16964{col 32}    0.1409{col 42}    0.0036{col 52}    0.1353{col 62}    0.1551{col 72}
{txt}  30{col 4}{res}    0.4591{col 14}    0.8026{col 24}   16442{col 32}    0.1462{col 42}    0.0037{col 52}    0.1420{col 62}    0.1622{col 72}
{txt}{hline 72}
  31{col 4}{res}    0.5333{col 14}    0.8026{col 24}   15824{col 32}    0.1519{col 42}    0.0038{col 52}    0.1482{col 62}    0.1689{col 72}
{txt}  32{col 4}{res}    0.6104{col 14}    0.8026{col 24}   15192{col 32}    0.1573{col 42}    0.0039{col 52}    0.1541{col 62}    0.1754{col 72}
{txt}  33{col 4}{res}    0.6888{col 14}    0.8026{col 24}   14487{col 32}    0.1624{col 42}    0.0041{col 52}    0.1591{col 62}    0.1810{col 72}
{txt}  34{col 4}{res}    0.7742{col 14}    0.8026{col 24}   13732{col 32}    0.1679{col 42}    0.0042{col 52}    0.1622{col 62}    0.1848{col 72}
{txt}  35{col 4}{res}    0.8623{col 14}    0.8026{col 24}   12884{col 32}    0.1736{col 42}    0.0044{col 52}    0.1644{col 62}    0.1879{col 72}
{txt}{hline 72}
  36{col 4}{res}    0.9564{col 14}    0.8026{col 24}   12031{col 32}    0.1801{col 42}    0.0046{col 52}    0.1663{col 62}    0.1908{col 72}
{txt}  37{col 4}{res}    1.0608{col 14}    0.8026{col 24}   11081{col 32}    0.1874{col 42}    0.0049{col 52}    0.1703{col 62}    0.1961{col 72}
{txt}  38{col 4}{res}    1.1802{col 14}    0.8026{col 24}    9988{col 32}    0.1965{col 42}    0.0052{col 52}    0.1752{col 62}    0.2028{col 72}
{txt}  39{col 4}{res}    1.3186{col 14}    0.8026{col 24}    8780{col 32}    0.2071{col 42}    0.0055{col 52}    0.1838{col 62}    0.2135{col 72}
{txt}  40{col 4}{res}    1.4786{col 14}    0.8026{col 24}    7444{col 32}    0.2227{col 42}    0.0060{col 52}    0.1975{col 62}    0.2294{col 72}
{txt}{hline 72}
  41{col 4}{res}    1.6822{col 14}    0.8026{col 24}    5903{col 32}    0.2475{col 42}    0.0068{col 52}    0.2265{col 62}    0.2610{col 72}
{txt}  42{col 4}{res}    1.9367{col 14}    0.8026{col 24}    4286{col 32}    0.2814{col 42}    0.0081{col 52}    0.2634{col 62}    0.3030{col 72}
{txt}  43{col 4}{res}    2.4270{col 14}    0.8026{col 24}    2052{col 32}    0.3453{col 42}    0.0131{col 52}    0.3175{col 62}    0.3775{col 72}
{txt}{hline 72}
  variable {bf}dots_binid{sf} was {bf}{res}float{sf}{txt} now {bf}{res}int{sf}
  {txt}variable {bf}dots_isknot{sf} was {bf}{res}float{sf}{txt} now {bf}{res}byte{sf}
  {txt}variable {bf}lprobust_nh_controls{sf} was {bf}{res}double{sf}{txt} now {bf}{res}int{sf}
  {txt}variable {bf}lprobust_nh{sf} was {bf}{res}double{sf}{txt} now {bf}{res}int{sf}
  {txt}variable {bf}Pais{sf} was {bf}{res}str27{sf}{txt} now {bf}{res}str7{sf}
  {txt}variable {bf}Dep{sf} was {bf}{res}str22{sf}{txt} now {bf}{res}str10{sf}
  {txt}variable {bf}Prov{sf} was {bf}{res}str28{sf}{txt} now {bf}{res}str26{sf}
  {txt}variable {bf}Reci{sf} was {bf}{res}str73{sf}{txt} now {bf}{res}str69{sf}
{txt}  (1,762,310 bytes saved)
(saving in Stata 13 format)
{p 0 6 2}
(FYI, {bf:saveold} has options
{bf:version(12)} and {bf:version(11)} that
write files in older Stata formats)
{p_end}
(note: file data/outputs//semipar_WITH_trimming_missingsMAX.dta not found)
{p 2 8 2}
note: variable label
"Votes for Unidad Cívica Solidaridad"
contains unicode and thus may not display well
in Stata 13.
{p_end}
{p 2 8 2}
note: variable label
"Votes for Partido Demócrata Cristiano"
contains unicode and thus may not display well
in Stata 13.
{p_end}
{p 2 8 2}
note: variable label
"Votes for Partido de Acción Nacional Boliviano"
contains unicode and thus may not display well
in Stata 13.
{p_end}
{p 2 8 2}
note: variable label
"Cómputo time stamp"
contains unicode and thus may not display well
in Stata 13.
{p_end}
file data/outputs//semipar_WITH_trimming_missingsMAX.dta saved
(373 real changes made, 373 to missing)
(4 missing values generated)
(373 real changes made)
(1,387 observations deleted)
(3 missing values generated)

                Last transmission time stamp
{hline 61}
      Percentiles      Smallest
 1%    {res} 1.89e+12       1.89e+12
{txt} 5%    {res} 1.89e+12       1.89e+12
{txt}10%    {res} 1.89e+12       1.89e+12       {txt}Obs         {res}     33,168
{txt}25%    {res} 1.89e+12       1.89e+12       {txt}Sum of Wgt. {res}     33,168

{txt}50%    {res} 1.89e+12                      {txt}Mean          {res} 1.89e+12
                        {txt}Largest       Std. Dev.     {res}  2563118
{txt}75%    {res} 1.89e+12       1.89e+12
{txt}90%    {res} 1.89e+12       1.89e+12       {txt}Variance      {res} 6.57e+12
{txt}95%    {res} 1.89e+12       1.89e+12       {txt}Skewness      {res}-.0272596
{txt}99%    {res} 1.89e+12       1.89e+12       {txt}Kurtosis      {res} 2.917522
{txt}(1,174 observations deleted)
Sorting dataset on trep_date_ulttrans_norm...
Note: This step is omitted if dataset already sorted by trep_date_ulttrans_norm.
{res}
{txt}Binscatter plot
Bin selection method: IMSE-optimal plug-in choice
Placement: Quantile-spaced
Derivative: 0
Output file: temp.dta

{hline 30}{c TT}{hline 15}
{lalign 1:# of observations}{col 30} {c |} {col 32}{res}  31994
{txt}{lalign 1:# of distinct values}{col 30} {c |} {col 32}{res}   9966
{txt}{lalign 1:# of clusters}{col 30} {c |} {col 32}{res}      .
{txt}{hline 30}{c +}{hline 15}
{lalign 1:Bin selection:}{col 30} {c |} 
{ralign 29:Degree of polynomial}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of smoothness constraints}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of bins}{col 30} {c |} {col 32}{res}     50
{txt}{hline 30}{c BT}{hline 15}

{hline 9}{c TT}{hline 30}
{col 10}{c |}{col 17}p{col 25}s{col 33}df
{hline 9}{c +}{hline 30}
{lalign 1: dots}{col 10}{c |}{col 17}0{col 25}0{col 33}50
{hline 9}{c BT}{hline 30}
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}          31,944
{txt}{col 9}from master{col 30}{res}          31,944{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}matched{col 30}{res}              50{txt}  (_merge==3)
{col 5}{hline 41}

{col 55} Number of obs ={res}   31994
{txt}{col 55} R-squared     ={res}  0.5287
{txt}{col 55} Adj R-squared ={res}  0.5286
{txt}{col 55} Root MSE      ={res}  0.3005
{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}mmargin_nbnn_so{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      t{col 49}   P>|t|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}ln_density {c |}{col 17}{res}{space 2}-.1191196{col 29}{space 2} .0021086{col 40}{space 1}  -56.49{col 49}{space 3}0.000{col 57}{space 4}-.1232525{col 70}{space 3}-.1149866
{txt}{space 5}ln_aglabor {c |}{col 17}{res}{space 2}-.1088822{col 29}{space 2} .0048134{col 40}{space 1}  -22.62{col 49}{space 3}0.000{col 57}{space 4}-.1183166{col 70}{space 3}-.0994477
{txt}{space 9}logpop {c |}{col 17}{res}{space 2} .0710033{col 29}{space 2} .0030474{col 40}{space 1}   23.30{col 49}{space 3}0.000{col 57}{space 4} .0650303{col 70}{space 3} .0769763
{txt}ln_dist_capital {c |}{col 17}{res}{space 2}-.0446134{col 29}{space 2} .0035385{col 40}{space 1}  -12.61{col 49}{space 3}0.000{col 57}{space 4} -.051549{col 70}{space 3}-.0376778
{txt}{space 2}capital_depto {c |}{col 17}{res}{space 2}-.4091247{col 29}{space 2} .0153396{col 40}{space 1}  -26.67{col 49}{space 3}0.000{col 57}{space 4}-.4391909{col 70}{space 3}-.3790584
{txt}{space 6}medialuna {c |}{col 17}{res}{space 2}-.2948981{col 29}{space 2} .0047242{col 40}{space 1}  -62.42{col 49}{space 3}0.000{col 57}{space 4}-.3041579{col 70}{space 3}-.2856384
{txt}{space 6}Inscritos {c |}{col 17}{res}{space 2}-.0000666{col 29}{space 2} .0000512{col 40}{space 1}   -1.30{col 49}{space 3}0.193{col 57}{space 4}-.0001669{col 70}{space 3} .0000337
{txt}{space 2}analfabetismo {c |}{col 17}{res}{space 2} .0092744{col 29}{space 2} .0008065{col 40}{space 1}   11.50{col 49}{space 3}0.000{col 57}{space 4} .0076937{col 70}{space 3} .0108551
{txt}{space 8}ed_prim {c |}{col 17}{res}{space 2} .0180754{col 29}{space 2} .0005068{col 40}{space 1}   35.67{col 49}{space 3}0.000{col 57}{space 4} .0170822{col 70}{space 3} .0190687
{txt}{space 9}ed_sec {c |}{col 17}{res}{space 2} .0055864{col 29}{space 2} .0004487{col 40}{space 1}   12.45{col 49}{space 3}0.000{col 57}{space 4} .0047068{col 70}{space 3}  .006466
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}Sorting dataset on trep_date_ulttrans_norm...
Note: This step is omitted if dataset already sorted by trep_date_ulttrans_norm.
{res}
{txt}Binscatter plot
Bin selection method: IMSE-optimal plug-in choice
Placement: Quantile-spaced
Derivative: 0
Output file: temp.dta

{hline 30}{c TT}{hline 15}
{lalign 1:# of observations}{col 30} {c |} {col 32}{res}  31994
{txt}{lalign 1:# of distinct values}{col 30} {c |} {col 32}{res}   9966
{txt}{lalign 1:# of clusters}{col 30} {c |} {col 32}{res}      .
{txt}{hline 30}{c +}{hline 15}
{lalign 1:Bin selection:}{col 30} {c |} 
{ralign 29:Degree of polynomial}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of smoothness constraints}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of bins}{col 30} {c |} {col 32}{res}     29
{txt}{hline 30}{c BT}{hline 15}

{hline 9}{c TT}{hline 30}
{col 10}{c |}{col 17}p{col 25}s{col 33}df
{hline 9}{c +}{hline 30}
{lalign 1: dots}{col 10}{c |}{col 17}0{col 25}0{col 33}29
{hline 9}{c BT}{hline 30}
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}          31,965
{txt}{col 9}from master{col 30}{res}          31,965{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}matched{col 30}{res}              29{txt}  (_merge==3)
{col 5}{hline 41}
{res}
Local Polynomial Regression Estimation and Inference.

{txt}{lalign 1: Sample size                              (n=)    }{col 19}{res}          31994
{txt}{lalign 1: Polynomial order for point estimation    (p=)    }{col 19}{res}              1
{txt}{lalign 1: Order of derivative estimated            (v=)    }{col 19}{res}              0
{txt}{lalign 1: Polynomial order for confidence interval (q=)    }{col 19}{res}              2
{txt}{lalign 1: Kernel function                                  }{col 19}{res}{ralign 15: Epanechnikov}
{txt}{lalign 1: Bandwidth selection method                       }{col 19}{res}{ralign 15: imse-dpi}

{txt}{hline 72}
{ralign 4: }{col 4}{ralign 10: }{col 14}{ralign 10: }{col 24}{ralign 8: }{col 32}{ralign 10: Point}{col 42}{ralign 10: Std.}{col 52}{ralign 20: Robust B.C.}{col 72}
{ralign 4: }{col 4}{ralign 10: eval}{col 14}{ralign 10: bw}{col 24}{ralign 8: Eff.n}{col 32}{ralign 10: Est.}{col 42}{ralign 10: Error}{col 52}{ralign 20: 95% Conf. Interval}{col 72}
{hline 72}
   1{col 4}{res}   -2.1686{col 14}    1.5069{col 24}    7707{col 32}    0.0483{col 42}    0.0088{col 52}    0.0281{col 62}    0.0624{col 72}
{txt}   2{col 4}{res}   -1.5247{col 14}    1.5069{col 24}   15843{col 32}    0.0426{col 42}    0.0045{col 52}    0.0272{col 62}    0.0452{col 72}
{txt}   3{col 4}{res}   -1.2620{col 14}    1.5069{col 24}   19116{col 32}    0.0509{col 42}    0.0035{col 52}    0.0407{col 62}    0.0552{col 72}
{txt}   4{col 4}{res}   -1.0864{col 14}    1.5069{col 24}   21120{col 32}    0.0584{col 42}    0.0030{col 52}    0.0508{col 62}    0.0637{col 72}
{txt}   5{col 4}{res}   -0.9466{col 14}    1.5069{col 24}   22574{col 32}    0.0652{col 42}    0.0027{col 52}    0.0593{col 62}    0.0713{col 72}
{txt}{hline 72}
   6{col 4}{res}   -0.8249{col 14}    1.5069{col 24}   23655{col 32}    0.0714{col 42}    0.0025{col 52}    0.0669{col 62}    0.0783{col 72}
{txt}   7{col 4}{res}   -0.7137{col 14}    1.5069{col 24}   24531{col 32}    0.0770{col 42}    0.0023{col 52}    0.0735{col 62}    0.0845{col 72}
{txt}   8{col 4}{res}   -0.6111{col 14}    1.5069{col 24}   25329{col 32}    0.0820{col 42}    0.0022{col 52}    0.0797{col 62}    0.0903{col 72}
{txt}   9{col 4}{res}   -0.5160{col 14}    1.5069{col 24}   25989{col 32}    0.0866{col 42}    0.0021{col 52}    0.0851{col 62}    0.0955{col 72}
{txt}  10{col 4}{res}   -0.4256{col 14}    1.5069{col 24}   26565{col 32}    0.0908{col 42}    0.0020{col 52}    0.0900{col 62}    0.1002{col 72}
{txt}{hline 72}
  11{col 4}{res}   -0.3389{col 14}    1.5069{col 24}   26989{col 32}    0.0948{col 42}    0.0019{col 52}    0.0947{col 62}    0.1047{col 72}
{txt}  12{col 4}{res}   -0.2564{col 14}    1.5069{col 24}   27331{col 32}    0.0985{col 42}    0.0019{col 52}    0.0988{col 62}    0.1087{col 72}
{txt}  13{col 4}{res}   -0.1726{col 14}    1.5069{col 24}   27621{col 32}    0.1022{col 42}    0.0019{col 52}    0.1027{col 62}    0.1125{col 72}
{txt}  14{col 4}{res}   -0.0915{col 14}    1.5069{col 24}   27780{col 32}    0.1055{col 42}    0.0019{col 52}    0.1063{col 62}    0.1161{col 72}
{txt}  15{col 4}{res}   -0.0068{col 14}    1.5069{col 24}   27919{col 32}    0.1089{col 42}    0.0019{col 52}    0.1095{col 62}    0.1193{col 72}
{txt}{hline 72}
  16{col 4}{res}    0.0791{col 14}    1.5069{col 24}   27973{col 32}    0.1122{col 42}    0.0019{col 52}    0.1125{col 62}    0.1223{col 72}
{txt}  17{col 4}{res}    0.1659{col 14}    1.5069{col 24}   27885{col 32}    0.1153{col 42}    0.0019{col 52}    0.1152{col 62}    0.1251{col 72}
{txt}  18{col 4}{res}    0.2562{col 14}    1.5069{col 24}   27752{col 32}    0.1185{col 42}    0.0019{col 52}    0.1177{col 62}    0.1277{col 72}
{txt}  19{col 4}{res}    0.3471{col 14}    1.5069{col 24}   27469{col 32}    0.1217{col 42}    0.0020{col 52}    0.1197{col 62}    0.1299{col 72}
{txt}  20{col 4}{res}    0.4414{col 14}    1.5069{col 24}   27067{col 32}    0.1250{col 42}    0.0020{col 52}    0.1216{col 62}    0.1320{col 72}
{txt}{hline 72}
  21{col 4}{res}    0.5427{col 14}    1.5069{col 24}   26512{col 32}    0.1285{col 42}    0.0021{col 52}    0.1235{col 62}    0.1342{col 72}
{txt}  22{col 4}{res}    0.6551{col 14}    1.5069{col 24}   25729{col 32}    0.1322{col 42}    0.0022{col 52}    0.1259{col 62}    0.1369{col 72}
{txt}  23{col 4}{res}    0.7744{col 14}    1.5069{col 24}   24710{col 32}    0.1363{col 42}    0.0023{col 52}    0.1287{col 62}    0.1402{col 72}
{txt}  24{col 4}{res}    0.9035{col 14}    1.5069{col 24}   23454{col 32}    0.1408{col 42}    0.0025{col 52}    0.1323{col 62}    0.1443{col 72}
{txt}  25{col 4}{res}    1.0452{col 14}    1.5069{col 24}   21942{col 32}    0.1458{col 42}    0.0027{col 52}    0.1367{col 62}    0.1494{col 72}
{txt}{hline 72}
  26{col 4}{res}    1.2159{col 14}    1.5069{col 24}   19782{col 32}    0.1522{col 42}    0.0030{col 52}    0.1422{col 62}    0.1560{col 72}
{txt}  27{col 4}{res}    1.4259{col 14}    1.5069{col 24}   16955{col 32}    0.1605{col 42}    0.0035{col 52}    0.1494{col 62}    0.1648{col 72}
{txt}  28{col 4}{res}    1.7066{col 14}    1.5069{col 24}   13357{col 32}    0.1729{col 42}    0.0045{col 52}    0.1616{col 62}    0.1799{col 72}
{txt}  29{col 4}{res}    2.1518{col 14}    1.5069{col 24}    8364{col 32}    0.1980{col 42}    0.0073{col 52}    0.1832{col 62}    0.2136{col 72}
{txt}{hline 72}
{res}
Local Polynomial Regression Estimation and Inference.

{txt}{lalign 1: Sample size                              (n=)    }{col 19}{res}          31994
{txt}{lalign 1: Polynomial order for point estimation    (p=)    }{col 19}{res}              1
{txt}{lalign 1: Order of derivative estimated            (v=)    }{col 19}{res}              0
{txt}{lalign 1: Polynomial order for confidence interval (q=)    }{col 19}{res}              2
{txt}{lalign 1: Kernel function                                  }{col 19}{res}{ralign 15: Epanechnikov}
{txt}{lalign 1: Bandwidth selection method                       }{col 19}{res}{ralign 15: imse-dpi}

{txt}{hline 72}
{ralign 4: }{col 4}{ralign 10: }{col 14}{ralign 10: }{col 24}{ralign 8: }{col 32}{ralign 10: Point}{col 42}{ralign 10: Std.}{col 52}{ralign 20: Robust B.C.}{col 72}
{ralign 4: }{col 4}{ralign 10: eval}{col 14}{ralign 10: bw}{col 24}{ralign 8: Eff.n}{col 32}{ralign 10: Est.}{col 42}{ralign 10: Error}{col 52}{ralign 20: 95% Conf. Interval}{col 72}
{hline 72}
   1{col 4}{res}   -2.3981{col 14}    1.0384{col 24}    2274{col 32}    0.2668{col 42}    0.0179{col 52}    0.2357{col 62}    0.3106{col 72}
{txt}   2{col 4}{res}   -1.8039{col 14}    1.0384{col 24}    6599{col 32}    0.1059{col 42}    0.0099{col 52}    0.0603{col 62}    0.1057{col 72}
{txt}   3{col 4}{res}   -1.5368{col 14}    1.0384{col 24}    9406{col 32}    0.0507{col 42}    0.0078{col 52}    0.0060{col 62}    0.0410{col 72}
{txt}   4{col 4}{res}   -1.3661{col 14}    1.0384{col 24}   11463{col 32}    0.0264{col 42}    0.0067{col 52}   -0.0138{col 62}    0.0159{col 72}
{txt}   5{col 4}{res}   -1.2367{col 14}    1.0384{col 24}   13064{col 32}    0.0164{col 42}    0.0059{col 52}   -0.0200{col 62}    0.0064{col 72}
{txt}{hline 72}
   6{col 4}{res}   -1.1349{col 14}    1.0384{col 24}   14344{col 32}    0.0137{col 42}    0.0054{col 52}   -0.0189{col 62}    0.0054{col 72}
{txt}   7{col 4}{res}   -1.0451{col 14}    1.0384{col 24}   15429{col 32}    0.0141{col 42}    0.0049{col 52}   -0.0153{col 62}    0.0075{col 72}
{txt}   8{col 4}{res}   -0.9655{col 14}    1.0384{col 24}   16349{col 32}    0.0159{col 42}    0.0046{col 52}   -0.0102{col 62}    0.0115{col 72}
{txt}   9{col 4}{res}   -0.8920{col 14}    1.0384{col 24}   17207{col 32}    0.0188{col 42}    0.0043{col 52}   -0.0038{col 62}    0.0170{col 72}
{txt}  10{col 4}{res}   -0.8236{col 14}    1.0384{col 24}   17958{col 32}    0.0223{col 42}    0.0041{col 52}    0.0028{col 62}    0.0228{col 72}
{txt}{hline 72}
  11{col 4}{res}   -0.7588{col 14}    1.0384{col 24}   18653{col 32}    0.0264{col 42}    0.0039{col 52}    0.0096{col 62}    0.0290{col 72}
{txt}  12{col 4}{res}   -0.6953{col 14}    1.0384{col 24}   19292{col 32}    0.0311{col 42}    0.0037{col 52}    0.0159{col 62}    0.0348{col 72}
{txt}  13{col 4}{res}   -0.6351{col 14}    1.0384{col 24}   19876{col 32}    0.0359{col 42}    0.0036{col 52}    0.0221{col 62}    0.0405{col 72}
{txt}  14{col 4}{res}   -0.5796{col 14}    1.0384{col 24}   20359{col 32}    0.0407{col 42}    0.0035{col 52}    0.0280{col 62}    0.0461{col 72}
{txt}  15{col 4}{res}   -0.5245{col 14}    1.0384{col 24}   20817{col 32}    0.0457{col 42}    0.0034{col 52}    0.0340{col 62}    0.0518{col 72}
{txt}{hline 72}
  16{col 4}{res}   -0.4701{col 14}    1.0384{col 24}   21190{col 32}    0.0508{col 42}    0.0033{col 52}    0.0400{col 62}    0.0575{col 72}
{txt}  17{col 4}{res}   -0.4193{col 14}    1.0384{col 24}   21517{col 32}    0.0557{col 42}    0.0033{col 52}    0.0456{col 62}    0.0629{col 72}
{txt}  18{col 4}{res}   -0.3687{col 14}    1.0384{col 24}   21799{col 32}    0.0605{col 42}    0.0032{col 52}    0.0515{col 62}    0.0686{col 72}
{txt}  19{col 4}{res}   -0.3191{col 14}    1.0384{col 24}   22068{col 32}    0.0654{col 42}    0.0032{col 52}    0.0571{col 62}    0.0740{col 72}
{txt}  20{col 4}{res}   -0.2712{col 14}    1.0384{col 24}   22271{col 32}    0.0702{col 42}    0.0031{col 52}    0.0625{col 62}    0.0793{col 72}
{txt}{hline 72}
  21{col 4}{res}   -0.2243{col 14}    1.0384{col 24}   22454{col 32}    0.0749{col 42}    0.0031{col 52}    0.0679{col 62}    0.0846{col 72}
{txt}  22{col 4}{res}   -0.1746{col 14}    1.0384{col 24}   22569{col 32}    0.0800{col 42}    0.0031{col 52}    0.0733{col 62}    0.0899{col 72}
{txt}  23{col 4}{res}   -0.1275{col 14}    1.0384{col 24}   22672{col 32}    0.0847{col 42}    0.0030{col 52}    0.0783{col 62}    0.0948{col 72}
{txt}  24{col 4}{res}   -0.0808{col 14}    1.0384{col 24}   22741{col 32}    0.0895{col 42}    0.0030{col 52}    0.0832{col 62}    0.0996{col 72}
{txt}  25{col 4}{res}   -0.0323{col 14}    1.0384{col 24}   22783{col 32}    0.0945{col 42}    0.0030{col 52}    0.0881{col 62}    0.1045{col 72}
{txt}{hline 72}
  26{col 4}{res}    0.0187{col 14}    1.0384{col 24}   22777{col 32}    0.0997{col 42}    0.0030{col 52}    0.0929{col 62}    0.1093{col 72}
{txt}  27{col 4}{res}    0.0684{col 14}    1.0384{col 24}   22711{col 32}    0.1047{col 42}    0.0030{col 52}    0.0977{col 62}    0.1141{col 72}
{txt}  28{col 4}{res}    0.1176{col 14}    1.0384{col 24}   22599{col 32}    0.1094{col 42}    0.0030{col 52}    0.1026{col 62}    0.1191{col 72}
{txt}  29{col 4}{res}    0.1691{col 14}    1.0384{col 24}   22452{col 32}    0.1142{col 42}    0.0031{col 52}    0.1078{col 62}    0.1244{col 72}
{txt}  30{col 4}{res}    0.2207{col 14}    1.0384{col 24}   22263{col 32}    0.1188{col 42}    0.0031{col 52}    0.1131{col 62}    0.1298{col 72}
{txt}{hline 72}
  31{col 4}{res}    0.2731{col 14}    1.0384{col 24}   22032{col 32}    0.1234{col 42}    0.0031{col 52}    0.1184{col 62}    0.1353{col 72}
{txt}  32{col 4}{res}    0.3266{col 14}    1.0384{col 24}   21759{col 32}    0.1279{col 42}    0.0032{col 52}    0.1234{col 62}    0.1405{col 72}
{txt}  33{col 4}{res}    0.3792{col 14}    1.0384{col 24}   21464{col 32}    0.1322{col 42}    0.0032{col 52}    0.1283{col 62}    0.1455{col 72}
{txt}  34{col 4}{res}    0.4351{col 14}    1.0384{col 24}   21095{col 32}    0.1365{col 42}    0.0033{col 52}    0.1334{col 62}    0.1509{col 72}
{txt}  35{col 4}{res}    0.4908{col 14}    1.0384{col 24}   20704{col 32}    0.1408{col 42}    0.0033{col 52}    0.1382{col 62}    0.1559{col 72}
{txt}{hline 72}
  36{col 4}{res}    0.5520{col 14}    1.0384{col 24}   20227{col 32}    0.1454{col 42}    0.0034{col 52}    0.1434{col 62}    0.1615{col 72}
{txt}  37{col 4}{res}    0.6169{col 14}    1.0384{col 24}   19649{col 32}    0.1501{col 42}    0.0035{col 52}    0.1485{col 62}    0.1669{col 72}
{txt}  38{col 4}{res}    0.6836{col 14}    1.0384{col 24}   19044{col 32}    0.1551{col 42}    0.0036{col 52}    0.1530{col 62}    0.1718{col 72}
{txt}  39{col 4}{res}    0.7527{col 14}    1.0384{col 24}   18345{col 32}    0.1604{col 42}    0.0037{col 52}    0.1567{col 62}    0.1761{col 72}
{txt}  40{col 4}{res}    0.8263{col 14}    1.0384{col 24}   17566{col 32}    0.1660{col 42}    0.0038{col 52}    0.1601{col 62}    0.1800{col 72}
{txt}{hline 72}
  41{col 4}{res}    0.9017{col 14}    1.0384{col 24}   16791{col 32}    0.1715{col 42}    0.0040{col 52}    0.1633{col 62}    0.1839{col 72}
{txt}  42{col 4}{res}    0.9813{col 14}    1.0384{col 24}   15897{col 32}    0.1772{col 42}    0.0041{col 52}    0.1670{col 62}    0.1883{col 72}
{txt}  43{col 4}{res}    1.0666{col 14}    1.0384{col 24}   15005{col 32}    0.1832{col 42}    0.0043{col 52}    0.1703{col 62}    0.1925{col 72}
{txt}  44{col 4}{res}    1.1646{col 14}    1.0384{col 24}   13902{col 32}    0.1903{col 42}    0.0045{col 52}    0.1744{col 62}    0.1977{col 72}
{txt}  45{col 4}{res}    1.2752{col 14}    1.0384{col 24}   12664{col 32}    0.1990{col 42}    0.0048{col 52}    0.1797{col 62}    0.2043{col 72}
{txt}{hline 72}
  46{col 4}{res}    1.4005{col 14}    1.0384{col 24}   11268{col 32}    0.2101{col 42}    0.0051{col 52}    0.1875{col 62}    0.2138{col 72}
{txt}  47{col 4}{res}    1.5410{col 14}    1.0384{col 24}    9778{col 32}    0.2237{col 42}    0.0056{col 52}    0.1985{col 62}    0.2265{col 72}
{txt}  48{col 4}{res}    1.7205{col 14}    1.0384{col 24}    8000{col 32}    0.2439{col 42}    0.0064{col 52}    0.2186{col 62}    0.2491{col 72}
{txt}  49{col 4}{res}    1.9366{col 14}    1.0384{col 24}    6100{col 32}    0.2731{col 42}    0.0080{col 52}    0.2518{col 62}    0.2860{col 72}
{txt}  50{col 4}{res}    2.2838{col 14}    1.0384{col 24}    3691{col 32}    0.3264{col 42}    0.0133{col 52}    0.3013{col 62}    0.3547{col 72}
{txt}{hline 72}
  variable {bf}dots_binid{sf} was {bf}{res}float{sf}{txt} now {bf}{res}int{sf}
  {txt}variable {bf}dots_isknot{sf} was {bf}{res}float{sf}{txt} now {bf}{res}byte{sf}
  {txt}variable {bf}lprobust_nh_controls{sf} was {bf}{res}double{sf}{txt} now {bf}{res}int{sf}
  {txt}variable {bf}lprobust_nh{sf} was {bf}{res}double{sf}{txt} now {bf}{res}int{sf}
  {txt}variable {bf}Pais{sf} was {bf}{res}str27{sf}{txt} now {bf}{res}str7{sf}
  {txt}variable {bf}Dep{sf} was {bf}{res}str22{sf}{txt} now {bf}{res}str10{sf}
  {txt}variable {bf}Prov{sf} was {bf}{res}str28{sf}{txt} now {bf}{res}str26{sf}
  {txt}variable {bf}Reci{sf} was {bf}{res}str73{sf}{txt} now {bf}{res}str69{sf}
{txt}  (1,759,670 bytes saved)
(saving in Stata 13 format)
{p 0 6 2}
(FYI, {bf:saveold} has options
{bf:version(12)} and {bf:version(11)} that
write files in older Stata formats)
{p_end}
(note: file data/outputs//semipar_WITH_trimming_missingsMIN.dta not found)
{p 2 8 2}
note: variable label
"Votes for Unidad Cívica Solidaridad"
contains unicode and thus may not display well
in Stata 13.
{p_end}
{p 2 8 2}
note: variable label
"Votes for Partido Demócrata Cristiano"
contains unicode and thus may not display well
in Stata 13.
{p_end}
{p 2 8 2}
note: variable label
"Votes for Partido de Acción Nacional Boliviano"
contains unicode and thus may not display well
in Stata 13.
{p_end}
{p 2 8 2}
note: variable label
"Cómputo time stamp"
contains unicode and thus may not display well
in Stata 13.
{p_end}
file data/outputs//semipar_WITH_trimming_missingsMIN.dta saved
(373 real changes made, 373 to missing)
(4 missing values generated)
(373 real changes made)
(1,387 observations deleted)
(3 missing values generated)

                Last transmission time stamp
{hline 61}
      Percentiles      Smallest
 1%    {res} 1.89e+12       1.89e+12
{txt} 5%    {res} 1.89e+12       1.89e+12
{txt}10%    {res} 1.89e+12       1.89e+12       {txt}Obs         {res}     33,168
{txt}25%    {res} 1.89e+12       1.89e+12       {txt}Sum of Wgt. {res}     33,168

{txt}50%    {res} 1.89e+12                      {txt}Mean          {res} 1.89e+12
                        {txt}Largest       Std. Dev.     {res}  2474736
{txt}75%    {res} 1.89e+12       1.89e+12
{txt}90%    {res} 1.89e+12       1.89e+12       {txt}Variance      {res} 6.12e+12
{txt}95%    {res} 1.89e+12       1.89e+12       {txt}Skewness      {res} .1012129
{txt}99%    {res} 1.89e+12       1.89e+12       {txt}Kurtosis      {res} 2.749301
{txt}(1,130 observations deleted)
Sorting dataset on trep_date_ulttrans_norm...
Note: This step is omitted if dataset already sorted by trep_date_ulttrans_norm.
{res}
{txt}Binscatter plot
Bin selection method: IMSE-optimal plug-in choice
Placement: Quantile-spaced
Derivative: 0
Output file: temp.dta

{hline 30}{c TT}{hline 15}
{lalign 1:# of observations}{col 30} {c |} {col 32}{res}  32038
{txt}{lalign 1:# of distinct values}{col 30} {c |} {col 32}{res}   9872
{txt}{lalign 1:# of clusters}{col 30} {c |} {col 32}{res}      .
{txt}{hline 30}{c +}{hline 15}
{lalign 1:Bin selection:}{col 30} {c |} 
{ralign 29:Degree of polynomial}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of smoothness constraints}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of bins}{col 30} {c |} {col 32}{res}     39
{txt}{hline 30}{c BT}{hline 15}

{hline 9}{c TT}{hline 30}
{col 10}{c |}{col 17}p{col 25}s{col 33}df
{hline 9}{c +}{hline 30}
{lalign 1: dots}{col 10}{c |}{col 17}0{col 25}0{col 33}39
{hline 9}{c BT}{hline 30}
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}          31,999
{txt}{col 9}from master{col 30}{res}          31,999{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}matched{col 30}{res}              39{txt}  (_merge==3)
{col 5}{hline 41}

{col 55} Number of obs ={res}   32038
{txt}{col 55} R-squared     ={res}  0.5293
{txt}{col 55} Adj R-squared ={res}  0.5291
{txt}{col 55} Root MSE      ={res}  0.3008
{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}mmargin_nbnn_so{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      t{col 49}   P>|t|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}ln_density {c |}{col 17}{res}{space 2}-.1168062{col 29}{space 2}  .002103{col 40}{space 1}  -55.54{col 49}{space 3}0.000{col 57}{space 4}-.1209281{col 70}{space 3}-.1126843
{txt}{space 5}ln_aglabor {c |}{col 17}{res}{space 2}-.1091102{col 29}{space 2} .0048185{col 40}{space 1}  -22.64{col 49}{space 3}0.000{col 57}{space 4}-.1185545{col 70}{space 3}-.0996658
{txt}{space 9}logpop {c |}{col 17}{res}{space 2} .0689465{col 29}{space 2} .0030447{col 40}{space 1}   22.64{col 49}{space 3}0.000{col 57}{space 4} .0629788{col 70}{space 3} .0749143
{txt}ln_dist_capital {c |}{col 17}{res}{space 2}-.0449444{col 29}{space 2} .0035431{col 40}{space 1}  -12.68{col 49}{space 3}0.000{col 57}{space 4} -.051889{col 70}{space 3}-.0379997
{txt}{space 2}capital_depto {c |}{col 17}{res}{space 2}-.4089509{col 29}{space 2} .0153544{col 40}{space 1}  -26.63{col 49}{space 3}0.000{col 57}{space 4}-.4390462{col 70}{space 3}-.3788556
{txt}{space 6}medialuna {c |}{col 17}{res}{space 2}-.2952507{col 29}{space 2} .0047316{col 40}{space 1}  -62.40{col 49}{space 3}0.000{col 57}{space 4}-.3045248{col 70}{space 3}-.2859765
{txt}{space 6}Inscritos {c |}{col 17}{res}{space 2}-.0000217{col 29}{space 2} .0000517{col 40}{space 1}   -0.42{col 49}{space 3}0.674{col 57}{space 4} -.000123{col 70}{space 3} .0000796
{txt}{space 2}analfabetismo {c |}{col 17}{res}{space 2} .0094231{col 29}{space 2} .0008072{col 40}{space 1}   11.67{col 49}{space 3}0.000{col 57}{space 4}  .007841{col 70}{space 3} .0110052
{txt}{space 8}ed_prim {c |}{col 17}{res}{space 2} .0181906{col 29}{space 2} .0005074{col 40}{space 1}   35.85{col 49}{space 3}0.000{col 57}{space 4}  .017196{col 70}{space 3} .0191852
{txt}{space 9}ed_sec {c |}{col 17}{res}{space 2} .0056085{col 29}{space 2}  .000449{col 40}{space 1}   12.49{col 49}{space 3}0.000{col 57}{space 4} .0047284{col 70}{space 3} .0064885
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}Sorting dataset on trep_date_ulttrans_norm...
Note: This step is omitted if dataset already sorted by trep_date_ulttrans_norm.
{res}
{txt}Binscatter plot
Bin selection method: IMSE-optimal plug-in choice
Placement: Quantile-spaced
Derivative: 0
Output file: temp.dta

{hline 30}{c TT}{hline 15}
{lalign 1:# of observations}{col 30} {c |} {col 32}{res}  32038
{txt}{lalign 1:# of distinct values}{col 30} {c |} {col 32}{res}   9872
{txt}{lalign 1:# of clusters}{col 30} {c |} {col 32}{res}      .
{txt}{hline 30}{c +}{hline 15}
{lalign 1:Bin selection:}{col 30} {c |} 
{ralign 29:Degree of polynomial}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of smoothness constraints}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of bins}{col 30} {c |} {col 32}{res}     27
{txt}{hline 30}{c BT}{hline 15}

{hline 9}{c TT}{hline 30}
{col 10}{c |}{col 17}p{col 25}s{col 33}df
{hline 9}{c +}{hline 30}
{lalign 1: dots}{col 10}{c |}{col 17}0{col 25}0{col 33}27
{hline 9}{c BT}{hline 30}
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}          32,011
{txt}{col 9}from master{col 30}{res}          32,011{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}matched{col 30}{res}              27{txt}  (_merge==3)
{col 5}{hline 41}
{res}
Local Polynomial Regression Estimation and Inference.

{txt}{lalign 1: Sample size                              (n=)    }{col 19}{res}          32038
{txt}{lalign 1: Polynomial order for point estimation    (p=)    }{col 19}{res}              1
{txt}{lalign 1: Order of derivative estimated            (v=)    }{col 19}{res}              0
{txt}{lalign 1: Polynomial order for confidence interval (q=)    }{col 19}{res}              2
{txt}{lalign 1: Kernel function                                  }{col 19}{res}{ralign 15: Epanechnikov}
{txt}{lalign 1: Bandwidth selection method                       }{col 19}{res}{ralign 15: imse-dpi}

{txt}{hline 72}
{ralign 4: }{col 4}{ralign 10: }{col 14}{ralign 10: }{col 24}{ralign 8: }{col 32}{ralign 10: Point}{col 42}{ralign 10: Std.}{col 52}{ralign 20: Robust B.C.}{col 72}
{ralign 4: }{col 4}{ralign 10: eval}{col 14}{ralign 10: bw}{col 24}{ralign 8: Eff.n}{col 32}{ralign 10: Est.}{col 42}{ralign 10: Error}{col 52}{ralign 20: 95% Conf. Interval}{col 72}
{hline 72}
   1{col 4}{res}   -2.0349{col 14}    1.3082{col 24}    7282{col 32}    0.0419{col 42}    0.0084{col 52}    0.0237{col 62}    0.0563{col 72}
{txt}   2{col 4}{res}   -1.4940{col 14}    1.3082{col 24}   13881{col 32}    0.0446{col 42}    0.0044{col 52}    0.0300{col 62}    0.0480{col 72}
{txt}   3{col 4}{res}   -1.2473{col 14}    1.3082{col 24}   17046{col 32}    0.0535{col 42}    0.0034{col 52}    0.0429{col 62}    0.0577{col 72}
{txt}   4{col 4}{res}   -1.0740{col 14}    1.3082{col 24}   19051{col 32}    0.0615{col 42}    0.0030{col 52}    0.0541{col 62}    0.0675{col 72}
{txt}   5{col 4}{res}   -0.9316{col 14}    1.3082{col 24}   20624{col 32}    0.0683{col 42}    0.0027{col 52}    0.0624{col 62}    0.0749{col 72}
{txt}{hline 72}
   6{col 4}{res}   -0.8056{col 14}    1.3082{col 24}   21898{col 32}    0.0744{col 42}    0.0025{col 52}    0.0700{col 62}    0.0819{col 72}
{txt}   7{col 4}{res}   -0.6877{col 14}    1.3082{col 24}   22885{col 32}    0.0801{col 42}    0.0023{col 52}    0.0772{col 62}    0.0886{col 72}
{txt}   8{col 4}{res}   -0.5834{col 14}    1.3082{col 24}   23715{col 32}    0.0851{col 42}    0.0022{col 52}    0.0831{col 62}    0.0943{col 72}
{txt}   9{col 4}{res}   -0.4833{col 14}    1.3082{col 24}   24380{col 32}    0.0899{col 42}    0.0021{col 52}    0.0885{col 62}    0.0993{col 72}
{txt}  10{col 4}{res}   -0.3870{col 14}    1.3082{col 24}   24936{col 32}    0.0943{col 42}    0.0020{col 52}    0.0933{col 62}    0.1040{col 72}
{txt}{hline 72}
  11{col 4}{res}   -0.2952{col 14}    1.3082{col 24}   25377{col 32}    0.0983{col 42}    0.0020{col 52}    0.0974{col 62}    0.1078{col 72}
{txt}  12{col 4}{res}   -0.2041{col 14}    1.3082{col 24}   25730{col 32}    0.1023{col 42}    0.0020{col 52}    0.1009{col 62}    0.1113{col 72}
{txt}  13{col 4}{res}   -0.1158{col 14}    1.3082{col 24}   25890{col 32}    0.1058{col 42}    0.0019{col 52}    0.1044{col 62}    0.1148{col 72}
{txt}  14{col 4}{res}   -0.0246{col 14}    1.3082{col 24}   25999{col 32}    0.1092{col 42}    0.0019{col 52}    0.1078{col 62}    0.1181{col 72}
{txt}  15{col 4}{res}    0.0676{col 14}    1.3082{col 24}   25949{col 32}    0.1125{col 42}    0.0020{col 52}    0.1108{col 62}    0.1212{col 72}
{txt}{hline 72}
  16{col 4}{res}    0.1630{col 14}    1.3082{col 24}   25728{col 32}    0.1156{col 42}    0.0020{col 52}    0.1137{col 62}    0.1242{col 72}
{txt}  17{col 4}{res}    0.2621{col 14}    1.3082{col 24}   25439{col 32}    0.1187{col 42}    0.0020{col 52}    0.1161{col 62}    0.1268{col 72}
{txt}  18{col 4}{res}    0.3635{col 14}    1.3082{col 24}   24937{col 32}    0.1216{col 42}    0.0021{col 52}    0.1184{col 62}    0.1294{col 72}
{txt}  19{col 4}{res}    0.4703{col 14}    1.3082{col 24}   24305{col 32}    0.1247{col 42}    0.0022{col 52}    0.1205{col 62}    0.1318{col 72}
{txt}  20{col 4}{res}    0.5895{col 14}    1.3082{col 24}   23496{col 32}    0.1283{col 42}    0.0023{col 52}    0.1227{col 62}    0.1344{col 72}
{txt}{hline 72}
  21{col 4}{res}    0.7167{col 14}    1.3082{col 24}   22379{col 32}    0.1324{col 42}    0.0024{col 52}    0.1252{col 62}    0.1374{col 72}
{txt}  22{col 4}{res}    0.8556{col 14}    1.3082{col 24}   21035{col 32}    0.1370{col 42}    0.0025{col 52}    0.1287{col 62}    0.1415{col 72}
{txt}  23{col 4}{res}    1.0056{col 14}    1.3082{col 24}   19359{col 32}    0.1424{col 42}    0.0027{col 52}    0.1325{col 62}    0.1461{col 72}
{txt}  24{col 4}{res}    1.1845{col 14}    1.3082{col 24}   17180{col 32}    0.1491{col 42}    0.0030{col 52}    0.1373{col 62}    0.1520{col 72}
{txt}  25{col 4}{res}    1.4094{col 14}    1.3082{col 24}   14403{col 32}    0.1581{col 42}    0.0035{col 52}    0.1446{col 62}    0.1611{col 72}
{txt}{hline 72}
  26{col 4}{res}    1.7048{col 14}    1.3082{col 24}   10886{col 32}    0.1721{col 42}    0.0045{col 52}    0.1598{col 62}    0.1793{col 72}
{txt}  27{col 4}{res}    2.1807{col 14}    1.3082{col 24}    6388{col 32}    0.1997{col 42}    0.0076{col 52}    0.1843{col 62}    0.2142{col 72}
{txt}{hline 72}
{res}
Local Polynomial Regression Estimation and Inference.

{txt}{lalign 1: Sample size                              (n=)    }{col 19}{res}          32038
{txt}{lalign 1: Polynomial order for point estimation    (p=)    }{col 19}{res}              1
{txt}{lalign 1: Order of derivative estimated            (v=)    }{col 19}{res}              0
{txt}{lalign 1: Polynomial order for confidence interval (q=)    }{col 19}{res}              2
{txt}{lalign 1: Kernel function                                  }{col 19}{res}{ralign 15: Epanechnikov}
{txt}{lalign 1: Bandwidth selection method                       }{col 19}{res}{ralign 15: imse-dpi}

{txt}{hline 72}
{ralign 4: }{col 4}{ralign 10: }{col 14}{ralign 10: }{col 24}{ralign 8: }{col 32}{ralign 10: Point}{col 42}{ralign 10: Std.}{col 52}{ralign 20: Robust B.C.}{col 72}
{ralign 4: }{col 4}{ralign 10: eval}{col 14}{ralign 10: bw}{col 24}{ralign 8: Eff.n}{col 32}{ralign 10: Est.}{col 42}{ralign 10: Error}{col 52}{ralign 20: 95% Conf. Interval}{col 72}
{hline 72}
   1{col 4}{res}   -2.1653{col 14}    0.7706{col 24}    2173{col 32}    0.1302{col 42}    0.0166{col 52}    0.1003{col 62}    0.1779{col 72}
{txt}   2{col 4}{res}   -1.6575{col 14}    0.7706{col 24}    5577{col 32}    0.0335{col 42}    0.0097{col 52}   -0.0045{col 62}    0.0406{col 72}
{txt}   3{col 4}{res}   -1.4220{col 14}    0.7706{col 24}    7785{col 32}    0.0085{col 42}    0.0074{col 52}   -0.0269{col 62}    0.0083{col 72}
{txt}   4{col 4}{res}   -1.2618{col 14}    0.7706{col 24}    9509{col 32}    0.0013{col 42}    0.0063{col 52}   -0.0264{col 62}    0.0039{col 72}
{txt}   5{col 4}{res}   -1.1362{col 14}    0.7706{col 24}   10870{col 32}    0.0015{col 42}    0.0056{col 52}   -0.0227{col 62}    0.0047{col 72}
{txt}{hline 72}
   6{col 4}{res}   -1.0278{col 14}    0.7706{col 24}   12114{col 32}    0.0062{col 42}    0.0050{col 52}   -0.0166{col 62}    0.0088{col 72}
{txt}   7{col 4}{res}   -0.9305{col 14}    0.7706{col 24}   13150{col 32}    0.0126{col 42}    0.0047{col 52}   -0.0077{col 62}    0.0163{col 72}
{txt}   8{col 4}{res}   -0.8430{col 14}    0.7706{col 24}   14052{col 32}    0.0197{col 42}    0.0044{col 52}    0.0015{col 62}    0.0244{col 72}
{txt}   9{col 4}{res}   -0.7588{col 14}    0.7706{col 24}   14866{col 32}    0.0274{col 42}    0.0041{col 52}    0.0101{col 62}    0.0321{col 72}
{txt}  10{col 4}{res}   -0.6790{col 14}    0.7706{col 24}   15587{col 32}    0.0349{col 42}    0.0040{col 52}    0.0203{col 62}    0.0416{col 72}
{txt}{hline 72}
  11{col 4}{res}   -0.6066{col 14}    0.7706{col 24}   16170{col 32}    0.0422{col 42}    0.0038{col 52}    0.0300{col 62}    0.0507{col 72}
{txt}  12{col 4}{res}   -0.5360{col 14}    0.7706{col 24}   16650{col 32}    0.0496{col 42}    0.0037{col 52}    0.0396{col 62}    0.0598{col 72}
{txt}  13{col 4}{res}   -0.4683{col 14}    0.7706{col 24}   17047{col 32}    0.0570{col 42}    0.0036{col 52}    0.0483{col 62}    0.0682{col 72}
{txt}  14{col 4}{res}   -0.4015{col 14}    0.7706{col 24}   17404{col 32}    0.0644{col 42}    0.0036{col 52}    0.0563{col 62}    0.0759{col 72}
{txt}  15{col 4}{res}   -0.3367{col 14}    0.7706{col 24}   17642{col 32}    0.0718{col 42}    0.0035{col 52}    0.0640{col 62}    0.0833{col 72}
{txt}{hline 72}
  16{col 4}{res}   -0.2751{col 14}    0.7706{col 24}   17868{col 32}    0.0786{col 42}    0.0035{col 52}    0.0712{col 62}    0.0903{col 72}
{txt}  17{col 4}{res}   -0.2114{col 14}    0.7706{col 24}   17954{col 32}    0.0854{col 42}    0.0034{col 52}    0.0786{col 62}    0.0975{col 72}
{txt}  18{col 4}{res}   -0.1502{col 14}    0.7706{col 24}   18003{col 32}    0.0918{col 42}    0.0034{col 52}    0.0856{col 62}    0.1045{col 72}
{txt}  19{col 4}{res}   -0.0884{col 14}    0.7706{col 24}   18013{col 32}    0.0980{col 42}    0.0034{col 52}    0.0924{col 62}    0.1112{col 72}
{txt}  20{col 4}{res}   -0.0246{col 14}    0.7706{col 24}   17985{col 32}    0.1045{col 42}    0.0034{col 52}    0.0987{col 62}    0.1175{col 72}
{txt}{hline 72}
  21{col 4}{res}    0.0395{col 14}    0.7706{col 24}   17882{col 32}    0.1108{col 42}    0.0034{col 52}    0.1046{col 62}    0.1234{col 72}
{txt}  22{col 4}{res}    0.1039{col 14}    0.7706{col 24}   17740{col 32}    0.1169{col 42}    0.0034{col 52}    0.1099{col 62}    0.1288{col 72}
{txt}  23{col 4}{res}    0.1701{col 14}    0.7706{col 24}   17533{col 32}    0.1230{col 42}    0.0035{col 52}    0.1148{col 62}    0.1339{col 72}
{txt}  24{col 4}{res}    0.2388{col 14}    0.7706{col 24}   17232{col 32}    0.1289{col 42}    0.0035{col 52}    0.1208{col 62}    0.1402{col 72}
{txt}  25{col 4}{res}    0.3090{col 14}    0.7706{col 24}   16865{col 32}    0.1350{col 42}    0.0036{col 52}    0.1266{col 62}    0.1463{col 72}
{txt}{hline 72}
  26{col 4}{res}    0.3789{col 14}    0.7706{col 24}   16474{col 32}    0.1408{col 42}    0.0036{col 52}    0.1330{col 62}    0.1530{col 72}
{txt}  27{col 4}{res}    0.4535{col 14}    0.7706{col 24}   15960{col 32}    0.1464{col 42}    0.0037{col 52}    0.1392{col 62}    0.1597{col 72}
{txt}  28{col 4}{res}    0.5319{col 14}    0.7706{col 24}   15346{col 32}    0.1518{col 42}    0.0038{col 52}    0.1451{col 62}    0.1662{col 72}
{txt}  29{col 4}{res}    0.6185{col 14}    0.7706{col 24}   14623{col 32}    0.1570{col 42}    0.0040{col 52}    0.1512{col 62}    0.1728{col 72}
{txt}  30{col 4}{res}    0.7059{col 14}    0.7706{col 24}   13856{col 32}    0.1615{col 42}    0.0041{col 52}    0.1573{col 62}    0.1796{col 72}
{txt}{hline 72}
  31{col 4}{res}    0.8016{col 14}    0.7706{col 24}   13098{col 32}    0.1665{col 42}    0.0043{col 52}    0.1609{col 62}    0.1839{col 72}
{txt}  32{col 4}{res}    0.9000{col 14}    0.7706{col 24}   12180{col 32}    0.1713{col 42}    0.0045{col 52}    0.1634{col 62}    0.1874{col 72}
{txt}  33{col 4}{res}    1.0054{col 14}    0.7706{col 24}   11253{col 32}    0.1775{col 42}    0.0047{col 52}    0.1645{col 62}    0.1897{col 72}
{txt}  34{col 4}{res}    1.1240{col 14}    0.7706{col 24}   10202{col 32}    0.1854{col 42}    0.0050{col 52}    0.1667{col 62}    0.1935{col 72}
{txt}  35{col 4}{res}    1.2643{col 14}    0.7706{col 24}    9015{col 32}    0.1954{col 42}    0.0054{col 52}    0.1704{col 62}    0.1995{col 72}
{txt}{hline 72}
  36{col 4}{res}    1.4277{col 14}    0.7706{col 24}    7798{col 32}    0.2073{col 42}    0.0058{col 52}    0.1823{col 62}    0.2139{col 72}
{txt}  37{col 4}{res}    1.6234{col 14}    0.7706{col 24}    6299{col 32}    0.2269{col 42}    0.0064{col 52}    0.2040{col 62}    0.2380{col 72}
{txt}  38{col 4}{res}    1.8787{col 14}    0.7706{col 24}    4617{col 32}    0.2605{col 42}    0.0076{col 52}    0.2419{col 62}    0.2798{col 72}
{txt}  39{col 4}{res}    2.2787{col 14}    0.7706{col 24}    2499{col 32}    0.3177{col 42}    0.0127{col 52}    0.2861{col 62}    0.3384{col 72}
{txt}{hline 72}
  variable {bf}dots_binid{sf} was {bf}{res}float{sf}{txt} now {bf}{res}int{sf}
  {txt}variable {bf}dots_isknot{sf} was {bf}{res}float{sf}{txt} now {bf}{res}byte{sf}
  {txt}variable {bf}lprobust_nh_controls{sf} was {bf}{res}double{sf}{txt} now {bf}{res}int{sf}
  {txt}variable {bf}lprobust_nh{sf} was {bf}{res}double{sf}{txt} now {bf}{res}int{sf}
  {txt}variable {bf}Pais{sf} was {bf}{res}str27{sf}{txt} now {bf}{res}str7{sf}
  {txt}variable {bf}Dep{sf} was {bf}{res}str22{sf}{txt} now {bf}{res}str10{sf}
  {txt}variable {bf}Prov{sf} was {bf}{res}str28{sf}{txt} now {bf}{res}str26{sf}
  {txt}variable {bf}Reci{sf} was {bf}{res}str73{sf}{txt} now {bf}{res}str69{sf}
{txt}  (1,762,090 bytes saved)
(saving in Stata 13 format)
{p 0 6 2}
(FYI, {bf:saveold} has options
{bf:version(12)} and {bf:version(11)} that
write files in older Stata formats)
{p_end}
(note: file data/outputs//semipar_WITH_trimming_missingsMEDIAN.dta not found)
{p 2 8 2}
note: variable label
"Votes for Unidad Cívica Solidaridad"
contains unicode and thus may not display well
in Stata 13.
{p_end}
{p 2 8 2}
note: variable label
"Votes for Partido Demócrata Cristiano"
contains unicode and thus may not display well
in Stata 13.
{p_end}
{p 2 8 2}
note: variable label
"Votes for Partido de Acción Nacional Boliviano"
contains unicode and thus may not display well
in Stata 13.
{p_end}
{p 2 8 2}
note: variable label
"Cómputo time stamp"
contains unicode and thus may not display well
in Stata 13.
{p_end}
file data/outputs//semipar_WITH_trimming_missingsMEDIAN.dta saved
(373 real changes made, 373 to missing)
(377 observations deleted)
(1,367 observations deleted)
(1 missing value generated)

                Last transmission time stamp
{hline 61}
      Percentiles      Smallest
 1%    {res} 1.89e+12       1.89e+12
{txt} 5%    {res} 1.89e+12       1.89e+12
{txt}10%    {res} 1.89e+12       1.89e+12       {txt}Obs         {res}     32,811
{txt}25%    {res} 1.89e+12       1.89e+12       {txt}Sum of Wgt. {res}     32,811

{txt}50%    {res} 1.89e+12                      {txt}Mean          {res} 1.89e+12
                        {txt}Largest       Std. Dev.     {res}  2483725
{txt}75%    {res} 1.89e+12       1.89e+12
{txt}90%    {res} 1.89e+12       1.89e+12       {txt}Variance      {res} 6.17e+12
{txt}95%    {res} 1.89e+12       1.89e+12       {txt}Skewness      {res} .0989451
{txt}99%    {res} 1.89e+12       1.89e+12       {txt}Kurtosis      {res} 2.744758
{txt}(1,087 observations deleted)
Sorting dataset on trep_date_ulttrans_norm...
Note: This step is omitted if dataset already sorted by trep_date_ulttrans_norm.
{res}
{txt}Binscatter plot
Bin selection method: IMSE-optimal plug-in choice
Placement: Quantile-spaced
Derivative: 0
Output file: temp.dta

{hline 30}{c TT}{hline 15}
{lalign 1:# of observations}{col 30} {c |} {col 32}{res}  31724
{txt}{lalign 1:# of distinct values}{col 30} {c |} {col 32}{res}   9853
{txt}{lalign 1:# of clusters}{col 30} {c |} {col 32}{res}      .
{txt}{hline 30}{c +}{hline 15}
{lalign 1:Bin selection:}{col 30} {c |} 
{ralign 29:Degree of polynomial}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of smoothness constraints}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of bins}{col 30} {c |} {col 32}{res}     42
{txt}{hline 30}{c BT}{hline 15}

{hline 9}{c TT}{hline 30}
{col 10}{c |}{col 17}p{col 25}s{col 33}df
{hline 9}{c +}{hline 30}
{lalign 1: dots}{col 10}{c |}{col 17}0{col 25}0{col 33}42
{hline 9}{c BT}{hline 30}
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}          31,682
{txt}{col 9}from master{col 30}{res}          31,682{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}matched{col 30}{res}              42{txt}  (_merge==3)
{col 5}{hline 41}

{col 55} Number of obs ={res}   31724
{txt}{col 55} R-squared     ={res}  0.5286
{txt}{col 55} Adj R-squared ={res}  0.5285
{txt}{col 55} Root MSE      ={res}  0.3001
{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}mmargin_nbnn_so{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      t{col 49}   P>|t|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}ln_density {c |}{col 17}{res}{space 2}-.1202955{col 29}{space 2} .0021487{col 40}{space 1}  -55.98{col 49}{space 3}0.000{col 57}{space 4}-.1245072{col 70}{space 3}-.1160839
{txt}{space 5}ln_aglabor {c |}{col 17}{res}{space 2}-.1106576{col 29}{space 2} .0048259{col 40}{space 1}  -22.93{col 49}{space 3}0.000{col 57}{space 4}-.1201166{col 70}{space 3}-.1011986
{txt}{space 9}logpop {c |}{col 17}{res}{space 2} .0714485{col 29}{space 2} .0030678{col 40}{space 1}   23.29{col 49}{space 3}0.000{col 57}{space 4} .0654355{col 70}{space 3} .0774615
{txt}ln_dist_capital {c |}{col 17}{res}{space 2}-.0453052{col 29}{space 2} .0035484{col 40}{space 1}  -12.77{col 49}{space 3}0.000{col 57}{space 4}-.0522603{col 70}{space 3}-.0383501
{txt}{space 2}capital_depto {c |}{col 17}{res}{space 2}-.4117373{col 29}{space 2} .0153907{col 40}{space 1}  -26.75{col 49}{space 3}0.000{col 57}{space 4}-.4419037{col 70}{space 3}-.3815709
{txt}{space 6}medialuna {c |}{col 17}{res}{space 2}-.2956921{col 29}{space 2} .0047595{col 40}{space 1}  -62.13{col 49}{space 3}0.000{col 57}{space 4}-.3050208{col 70}{space 3}-.2863633
{txt}{space 6}Inscritos {c |}{col 17}{res}{space 2}-.0001001{col 29}{space 2}  .000053{col 40}{space 1}   -1.89{col 49}{space 3}0.059{col 57}{space 4}-.0002039{col 70}{space 3} 3.66e-06
{txt}{space 2}analfabetismo {c |}{col 17}{res}{space 2} .0087453{col 29}{space 2} .0008116{col 40}{space 1}   10.78{col 49}{space 3}0.000{col 57}{space 4} .0071546{col 70}{space 3} .0103361
{txt}{space 8}ed_prim {c |}{col 17}{res}{space 2} .0182647{col 29}{space 2}  .000511{col 40}{space 1}   35.74{col 49}{space 3}0.000{col 57}{space 4} .0172632{col 70}{space 3} .0192663
{txt}{space 9}ed_sec {c |}{col 17}{res}{space 2} .0055046{col 29}{space 2} .0004516{col 40}{space 1}   12.19{col 49}{space 3}0.000{col 57}{space 4} .0046194{col 70}{space 3} .0063898
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}Sorting dataset on trep_date_ulttrans_norm...
Note: This step is omitted if dataset already sorted by trep_date_ulttrans_norm.
{res}
{txt}Binscatter plot
Bin selection method: IMSE-optimal plug-in choice
Placement: Quantile-spaced
Derivative: 0
Output file: temp.dta

{hline 30}{c TT}{hline 15}
{lalign 1:# of observations}{col 30} {c |} {col 32}{res}  31724
{txt}{lalign 1:# of distinct values}{col 30} {c |} {col 32}{res}   9853
{txt}{lalign 1:# of clusters}{col 30} {c |} {col 32}{res}      .
{txt}{hline 30}{c +}{hline 15}
{lalign 1:Bin selection:}{col 30} {c |} 
{ralign 29:Degree of polynomial}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of smoothness constraints}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of bins}{col 30} {c |} {col 32}{res}     26
{txt}{hline 30}{c BT}{hline 15}

{hline 9}{c TT}{hline 30}
{col 10}{c |}{col 17}p{col 25}s{col 33}df
{hline 9}{c +}{hline 30}
{lalign 1: dots}{col 10}{c |}{col 17}0{col 25}0{col 33}26
{hline 9}{c BT}{hline 30}
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}          31,698
{txt}{col 9}from master{col 30}{res}          31,698{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}matched{col 30}{res}              26{txt}  (_merge==3)
{col 5}{hline 41}
{res}
Local Polynomial Regression Estimation and Inference.

{txt}{lalign 1: Sample size                              (n=)    }{col 19}{res}          31724
{txt}{lalign 1: Polynomial order for point estimation    (p=)    }{col 19}{res}              1
{txt}{lalign 1: Order of derivative estimated            (v=)    }{col 19}{res}              0
{txt}{lalign 1: Polynomial order for confidence interval (q=)    }{col 19}{res}              2
{txt}{lalign 1: Kernel function                                  }{col 19}{res}{ralign 15: Epanechnikov}
{txt}{lalign 1: Bandwidth selection method                       }{col 19}{res}{ralign 15: imse-dpi}

{txt}{hline 72}
{ralign 4: }{col 4}{ralign 10: }{col 14}{ralign 10: }{col 24}{ralign 8: }{col 32}{ralign 10: Point}{col 42}{ralign 10: Std.}{col 52}{ralign 20: Robust B.C.}{col 72}
{ralign 4: }{col 4}{ralign 10: eval}{col 14}{ralign 10: bw}{col 24}{ralign 8: Eff.n}{col 32}{ralign 10: Est.}{col 42}{ralign 10: Error}{col 52}{ralign 20: 95% Conf. Interval}{col 72}
{hline 72}
   1{col 4}{res}   -2.0252{col 14}    1.3049{col 24}    7345{col 32}    0.0307{col 42}    0.0083{col 52}    0.0122{col 62}    0.0445{col 72}
{txt}   2{col 4}{res}   -1.4798{col 14}    1.3049{col 24}   13926{col 32}    0.0375{col 42}    0.0043{col 52}    0.0233{col 62}    0.0411{col 72}
{txt}   3{col 4}{res}   -1.2330{col 14}    1.3049{col 24}   16979{col 32}    0.0484{col 42}    0.0034{col 52}    0.0386{col 62}    0.0533{col 72}
{txt}   4{col 4}{res}   -1.0584{col 14}    1.3049{col 24}   18957{col 32}    0.0576{col 42}    0.0029{col 52}    0.0510{col 62}    0.0643{col 72}
{txt}   5{col 4}{res}   -0.9137{col 14}    1.3049{col 24}   20519{col 32}    0.0654{col 42}    0.0026{col 52}    0.0603{col 62}    0.0728{col 72}
{txt}{hline 72}
   6{col 4}{res}   -0.7845{col 14}    1.3049{col 24}   21813{col 32}    0.0721{col 42}    0.0024{col 52}    0.0689{col 62}    0.0807{col 72}
{txt}   7{col 4}{res}   -0.6660{col 14}    1.3049{col 24}   22802{col 32}    0.0783{col 42}    0.0023{col 52}    0.0765{col 62}    0.0879{col 72}
{txt}   8{col 4}{res}   -0.5573{col 14}    1.3049{col 24}   23629{col 32}    0.0838{col 42}    0.0022{col 52}    0.0829{col 62}    0.0940{col 72}
{txt}   9{col 4}{res}   -0.4548{col 14}    1.3049{col 24}   24288{col 32}    0.0889{col 42}    0.0021{col 52}    0.0885{col 62}    0.0993{col 72}
{txt}  10{col 4}{res}   -0.3564{col 14}    1.3049{col 24}   24801{col 32}    0.0936{col 42}    0.0020{col 52}    0.0933{col 62}    0.1040{col 72}
{txt}{hline 72}
  11{col 4}{res}   -0.2627{col 14}    1.3049{col 24}   25240{col 32}    0.0979{col 42}    0.0020{col 52}    0.0973{col 62}    0.1078{col 72}
{txt}  12{col 4}{res}   -0.1674{col 14}    1.3049{col 24}   25509{col 32}    0.1020{col 42}    0.0020{col 52}    0.1012{col 62}    0.1116{col 72}
{txt}  13{col 4}{res}   -0.0738{col 14}    1.3049{col 24}   25679{col 32}    0.1058{col 42}    0.0020{col 52}    0.1048{col 62}    0.1152{col 72}
{txt}  14{col 4}{res}    0.0249{col 14}    1.3049{col 24}   25674{col 32}    0.1095{col 42}    0.0020{col 52}    0.1082{col 62}    0.1186{col 72}
{txt}  15{col 4}{res}    0.1230{col 14}    1.3049{col 24}   25528{col 32}    0.1129{col 42}    0.0020{col 52}    0.1112{col 62}    0.1218{col 72}
{txt}{hline 72}
  16{col 4}{res}    0.2247{col 14}    1.3049{col 24}   25267{col 32}    0.1162{col 42}    0.0020{col 52}    0.1139{col 62}    0.1246{col 72}
{txt}  17{col 4}{res}    0.3291{col 14}    1.3049{col 24}   24792{col 32}    0.1193{col 42}    0.0021{col 52}    0.1162{col 62}    0.1272{col 72}
{txt}  18{col 4}{res}    0.4370{col 14}    1.3049{col 24}   24198{col 32}    0.1223{col 42}    0.0021{col 52}    0.1184{col 62}    0.1297{col 72}
{txt}  19{col 4}{res}    0.5544{col 14}    1.3049{col 24}   23402{col 32}    0.1258{col 42}    0.0022{col 52}    0.1207{col 62}    0.1323{col 72}
{txt}  20{col 4}{res}    0.6844{col 14}    1.3049{col 24}   22375{col 32}    0.1298{col 42}    0.0024{col 52}    0.1234{col 62}    0.1354{col 72}
{txt}{hline 72}
  21{col 4}{res}    0.8257{col 14}    1.3049{col 24}   21057{col 32}    0.1345{col 42}    0.0025{col 52}    0.1266{col 62}    0.1393{col 72}
{txt}  22{col 4}{res}    0.9781{col 14}    1.3049{col 24}   19401{col 32}    0.1397{col 42}    0.0027{col 52}    0.1304{col 62}    0.1439{col 72}
{txt}  23{col 4}{res}    1.1570{col 14}    1.3049{col 24}   17255{col 32}    0.1463{col 42}    0.0030{col 52}    0.1348{col 62}    0.1494{col 72}
{txt}  24{col 4}{res}    1.3832{col 14}    1.3049{col 24}   14568{col 32}    0.1549{col 42}    0.0035{col 52}    0.1418{col 62}    0.1581{col 72}
{txt}  25{col 4}{res}    1.6820{col 14}    1.3049{col 24}   11047{col 32}    0.1682{col 42}    0.0044{col 52}    0.1560{col 62}    0.1753{col 72}
{txt}{hline 72}
  26{col 4}{res}    2.1669{col 14}    1.3049{col 24}    6410{col 32}    0.1947{col 42}    0.0076{col 52}    0.1794{col 62}    0.2093{col 72}
{txt}{hline 72}
{res}
Local Polynomial Regression Estimation and Inference.

{txt}{lalign 1: Sample size                              (n=)    }{col 19}{res}          31724
{txt}{lalign 1: Polynomial order for point estimation    (p=)    }{col 19}{res}              1
{txt}{lalign 1: Order of derivative estimated            (v=)    }{col 19}{res}              0
{txt}{lalign 1: Polynomial order for confidence interval (q=)    }{col 19}{res}              2
{txt}{lalign 1: Kernel function                                  }{col 19}{res}{ralign 15: Epanechnikov}
{txt}{lalign 1: Bandwidth selection method                       }{col 19}{res}{ralign 15: imse-dpi}

{txt}{hline 72}
{ralign 4: }{col 4}{ralign 10: }{col 14}{ralign 10: }{col 24}{ralign 8: }{col 32}{ralign 10: Point}{col 42}{ralign 10: Std.}{col 52}{ralign 20: Robust B.C.}{col 72}
{ralign 4: }{col 4}{ralign 10: eval}{col 14}{ralign 10: bw}{col 24}{ralign 8: Eff.n}{col 32}{ralign 10: Est.}{col 42}{ralign 10: Error}{col 52}{ralign 20: 95% Conf. Interval}{col 72}
{hline 72}
   1{col 4}{res}   -2.1959{col 14}    0.7909{col 24}    2126{col 32}    0.1385{col 42}    0.0172{col 52}    0.1071{col 62}    0.1857{col 72}
{txt}   2{col 4}{res}   -1.6929{col 14}    0.7909{col 24}    5462{col 32}    0.0397{col 42}    0.0100{col 52}    0.0019{col 62}    0.0483{col 72}
{txt}   3{col 4}{res}   -1.4600{col 14}    0.7909{col 24}    7607{col 32}    0.0118{col 42}    0.0077{col 52}   -0.0241{col 62}    0.0122{col 72}
{txt}   4{col 4}{res}   -1.3001{col 14}    0.7909{col 24}    9261{col 32}    0.0021{col 42}    0.0065{col 52}   -0.0290{col 62}    0.0020{col 72}
{txt}   5{col 4}{res}   -1.1777{col 14}    0.7909{col 24}   10626{col 32}    0.0006{col 42}    0.0057{col 52}   -0.0271{col 62}    0.0009{col 72}
{txt}{hline 72}
   6{col 4}{res}   -1.0724{col 14}    0.7909{col 24}   11826{col 32}    0.0035{col 42}    0.0052{col 52}   -0.0215{col 62}    0.0044{col 72}
{txt}   7{col 4}{res}   -0.9804{col 14}    0.7909{col 24}   12814{col 32}    0.0088{col 42}    0.0048{col 52}   -0.0133{col 62}    0.0112{col 72}
{txt}   8{col 4}{res}   -0.8939{col 14}    0.7909{col 24}   13736{col 32}    0.0149{col 42}    0.0045{col 52}   -0.0034{col 62}    0.0200{col 72}
{txt}   9{col 4}{res}   -0.8146{col 14}    0.7909{col 24}   14503{col 32}    0.0216{col 42}    0.0043{col 52}    0.0050{col 62}    0.0275{col 72}
{txt}  10{col 4}{res}   -0.7374{col 14}    0.7909{col 24}   15212{col 32}    0.0284{col 42}    0.0041{col 52}    0.0143{col 62}    0.0360{col 72}
{txt}{hline 72}
  11{col 4}{res}   -0.6658{col 14}    0.7909{col 24}   15822{col 32}    0.0347{col 42}    0.0039{col 52}    0.0236{col 62}    0.0447{col 72}
{txt}  12{col 4}{res}   -0.5984{col 14}    0.7909{col 24}   16336{col 32}    0.0409{col 42}    0.0038{col 52}    0.0321{col 62}    0.0526{col 72}
{txt}  13{col 4}{res}   -0.5313{col 14}    0.7909{col 24}   16836{col 32}    0.0474{col 42}    0.0037{col 52}    0.0403{col 62}    0.0604{col 72}
{txt}  14{col 4}{res}   -0.4692{col 14}    0.7909{col 24}   17168{col 32}    0.0537{col 42}    0.0036{col 52}    0.0468{col 62}    0.0666{col 72}
{txt}  15{col 4}{res}   -0.4076{col 14}    0.7909{col 24}   17504{col 32}    0.0601{col 42}    0.0036{col 52}    0.0531{col 62}    0.0725{col 72}
{txt}{hline 72}
  16{col 4}{res}   -0.3475{col 14}    0.7909{col 24}   17765{col 32}    0.0664{col 42}    0.0035{col 52}    0.0588{col 62}    0.0780{col 72}
{txt}  17{col 4}{res}   -0.2899{col 14}    0.7909{col 24}   17973{col 32}    0.0725{col 42}    0.0035{col 52}    0.0643{col 62}    0.0833{col 72}
{txt}  18{col 4}{res}   -0.2304{col 14}    0.7909{col 24}   18076{col 32}    0.0786{col 42}    0.0034{col 52}    0.0698{col 62}    0.0887{col 72}
{txt}  19{col 4}{res}   -0.1713{col 14}    0.7909{col 24}   18124{col 32}    0.0847{col 42}    0.0034{col 52}    0.0751{col 62}    0.0940{col 72}
{txt}  20{col 4}{res}   -0.1148{col 14}    0.7909{col 24}   18183{col 32}    0.0902{col 42}    0.0034{col 52}    0.0804{col 62}    0.0992{col 72}
{txt}{hline 72}
  21{col 4}{res}   -0.0557{col 14}    0.7909{col 24}   18137{col 32}    0.0961{col 42}    0.0034{col 52}    0.0858{col 62}    0.1046{col 72}
{txt}  22{col 4}{res}    0.0059{col 14}    0.7909{col 24}   18048{col 32}    0.1020{col 42}    0.0034{col 52}    0.0919{col 62}    0.1107{col 72}
{txt}  23{col 4}{res}    0.0660{col 14}    0.7909{col 24}   17999{col 32}    0.1077{col 42}    0.0034{col 52}    0.0975{col 62}    0.1163{col 72}
{txt}  24{col 4}{res}    0.1276{col 14}    0.7909{col 24}   17813{col 32}    0.1134{col 42}    0.0034{col 52}    0.1032{col 62}    0.1222{col 72}
{txt}  25{col 4}{res}    0.1903{col 14}    0.7909{col 24}   17596{col 32}    0.1192{col 42}    0.0035{col 52}    0.1093{col 62}    0.1285{col 72}
{txt}{hline 72}
  26{col 4}{res}    0.2540{col 14}    0.7909{col 24}   17370{col 32}    0.1250{col 42}    0.0035{col 52}    0.1158{col 62}    0.1352{col 72}
{txt}  27{col 4}{res}    0.3193{col 14}    0.7909{col 24}   17005{col 32}    0.1311{col 42}    0.0036{col 52}    0.1226{col 62}    0.1422{col 72}
{txt}  28{col 4}{res}    0.3846{col 14}    0.7909{col 24}   16624{col 32}    0.1366{col 42}    0.0036{col 52}    0.1302{col 62}    0.1501{col 72}
{txt}  29{col 4}{res}    0.4528{col 14}    0.7909{col 24}   16156{col 32}    0.1423{col 42}    0.0037{col 52}    0.1372{col 62}    0.1576{col 72}
{txt}  30{col 4}{res}    0.5243{col 14}    0.7909{col 24}   15576{col 32}    0.1477{col 42}    0.0038{col 52}    0.1437{col 62}    0.1645{col 72}
{txt}{hline 72}
  31{col 4}{res}    0.6032{col 14}    0.7909{col 24}   14977{col 32}    0.1533{col 42}    0.0039{col 52}    0.1497{col 62}    0.1710{col 72}
{txt}  32{col 4}{res}    0.6839{col 14}    0.7909{col 24}   14268{col 32}    0.1582{col 42}    0.0041{col 52}    0.1553{col 62}    0.1773{col 72}
{txt}  33{col 4}{res}    0.7700{col 14}    0.7909{col 24}   13577{col 32}    0.1633{col 42}    0.0042{col 52}    0.1588{col 62}    0.1815{col 72}
{txt}  34{col 4}{res}    0.8600{col 14}    0.7909{col 24}   12757{col 32}    0.1682{col 42}    0.0044{col 52}    0.1612{col 62}    0.1847{col 72}
{txt}  35{col 4}{res}    0.9548{col 14}    0.7909{col 24}   11935{col 32}    0.1737{col 42}    0.0046{col 52}    0.1626{col 62}    0.1872{col 72}
{txt}{hline 72}
  36{col 4}{res}    1.0572{col 14}    0.7909{col 24}   11018{col 32}    0.1801{col 42}    0.0049{col 52}    0.1649{col 62}    0.1906{col 72}
{txt}  37{col 4}{res}    1.1750{col 14}    0.7909{col 24}    9991{col 32}    0.1881{col 42}    0.0051{col 52}    0.1679{col 62}    0.1953{col 72}
{txt}  38{col 4}{res}    1.3114{col 14}    0.7909{col 24}    8824{col 32}    0.1976{col 42}    0.0055{col 52}    0.1740{col 62}    0.2035{col 72}
{txt}  39{col 4}{res}    1.4696{col 14}    0.7909{col 24}    7592{col 32}    0.2104{col 42}    0.0059{col 52}    0.1853{col 62}    0.2172{col 72}
{txt}  40{col 4}{res}    1.6611{col 14}    0.7909{col 24}    6161{col 32}    0.2312{col 42}    0.0066{col 52}    0.2069{col 62}    0.2413{col 72}
{txt}{hline 72}
  41{col 4}{res}    1.9078{col 14}    0.7909{col 24}    4503{col 32}    0.2645{col 42}    0.0078{col 52}    0.2434{col 62}    0.2819{col 72}
{txt}  42{col 4}{res}    2.2948{col 14}    0.7909{col 24}    2475{col 32}    0.3243{col 42}    0.0133{col 52}    0.2928{col 62}    0.3464{col 72}
{txt}{hline 72}
  variable {bf}dots_binid{sf} was {bf}{res}float{sf}{txt} now {bf}{res}int{sf}
  {txt}variable {bf}dots_isknot{sf} was {bf}{res}float{sf}{txt} now {bf}{res}byte{sf}
  {txt}variable {bf}lprobust_nh_controls{sf} was {bf}{res}double{sf}{txt} now {bf}{res}int{sf}
  {txt}variable {bf}lprobust_nh{sf} was {bf}{res}double{sf}{txt} now {bf}{res}int{sf}
  {txt}variable {bf}Pais{sf} was {bf}{res}str27{sf}{txt} now {bf}{res}str7{sf}
  {txt}variable {bf}Dep{sf} was {bf}{res}str22{sf}{txt} now {bf}{res}str10{sf}
  {txt}variable {bf}Prov{sf} was {bf}{res}str28{sf}{txt} now {bf}{res}str26{sf}
  {txt}variable {bf}Reci{sf} was {bf}{res}str73{sf}{txt} now {bf}{res}str69{sf}
{txt}  (1,744,820 bytes saved)
(saving in Stata 13 format)
{p 0 6 2}
(FYI, {bf:saveold} has options
{bf:version(12)} and {bf:version(11)} that
write files in older Stata formats)
{p_end}
(note: file data/outputs//semipar_WITH_trimming_missingsDROPPED.dta not found)
{p 2 8 2}
note: variable label
"Votes for Unidad Cívica Solidaridad"
contains unicode and thus may not display well
in Stata 13.
{p_end}
{p 2 8 2}
note: variable label
"Votes for Partido Demócrata Cristiano"
contains unicode and thus may not display well
in Stata 13.
{p_end}
{p 2 8 2}
note: variable label
"Votes for Partido de Acción Nacional Boliviano"
contains unicode and thus may not display well
in Stata 13.
{p_end}
{p 2 8 2}
note: variable label
"Cómputo time stamp"
contains unicode and thus may not display well
in Stata 13.
{p_end}
file data/outputs//semipar_WITH_trimming_missingsDROPPED.dta saved
(373 real changes made, 373 to missing)
(4 missing values generated)
(373 real changes made)
(4 missing values generated)

                Last transmission time stamp
{hline 61}
      Percentiles      Smallest
 1%    {res} 1.89e+12       1.89e+12
{txt} 5%    {res} 1.89e+12       1.89e+12
{txt}10%    {res} 1.89e+12       1.89e+12       {txt}Obs         {res}     34,551
{txt}25%    {res} 1.89e+12       1.89e+12       {txt}Sum of Wgt. {res}     34,551

{txt}50%    {res} 1.89e+12                      {txt}Mean          {res} 1.89e+12
                        {txt}Largest       Std. Dev.     {res}  5285318
{txt}75%    {res} 1.89e+12       1.89e+12
{txt}90%    {res} 1.89e+12       1.89e+12       {txt}Variance      {res} 2.79e+13
{txt}95%    {res} 1.89e+12       1.89e+12       {txt}Skewness      {res} 8.870829
{txt}99%    {res} 1.89e+12       1.89e+12       {txt}Kurtosis      {res} 219.4378
{txt}(4 missing values generated)
(1,644 observations deleted)
Sorting dataset on trep_date_ulttrans_norm...
Note: This step is omitted if dataset already sorted by trep_date_ulttrans_norm.
{res}
{txt}Binscatter plot
Bin selection method: IMSE-optimal plug-in choice
Placement: Quantile-spaced
Derivative: 0
Output file: temp.dta

{hline 30}{c TT}{hline 15}
{lalign 1:# of observations}{col 30} {c |} {col 32}{res}  32911
{txt}{lalign 1:# of distinct values}{col 30} {c |} {col 32}{res}  10708
{txt}{lalign 1:# of clusters}{col 30} {c |} {col 32}{res}      .
{txt}{hline 30}{c +}{hline 15}
{lalign 1:Bin selection:}{col 30} {c |} 
{ralign 29:Degree of polynomial}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of smoothness constraints}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of bins}{col 30} {c |} {col 32}{res}     52
{txt}{hline 30}{c BT}{hline 15}

{hline 9}{c TT}{hline 30}
{col 10}{c |}{col 17}p{col 25}s{col 33}df
{hline 9}{c +}{hline 30}
{lalign 1: dots}{col 10}{c |}{col 17}0{col 25}0{col 33}52
{hline 9}{c BT}{hline 30}
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}          32,859
{txt}{col 9}from master{col 30}{res}          32,859{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}matched{col 30}{res}              52{txt}  (_merge==3)
{col 5}{hline 41}

{col 55} Number of obs ={res}   32909
{txt}{col 55} R-squared     ={res}  0.5233
{txt}{col 55} Adj R-squared ={res}  0.5231
{txt}{col 55} Root MSE      ={res}  0.3018
{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}mmargin_nbnn_so{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      t{col 49}   P>|t|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}ln_density {c |}{col 17}{res}{space 2} -.114062{col 29}{space 2}  .002065{col 40}{space 1}  -55.23{col 49}{space 3}0.000{col 57}{space 4}-.1181095{col 70}{space 3}-.1100144
{txt}{space 5}ln_aglabor {c |}{col 17}{res}{space 2}-.1056582{col 29}{space 2} .0047443{col 40}{space 1}  -22.27{col 49}{space 3}0.000{col 57}{space 4}-.1149573{col 70}{space 3}-.0963591
{txt}{space 9}logpop {c |}{col 17}{res}{space 2} .0698856{col 29}{space 2} .0029925{col 40}{space 1}   23.35{col 49}{space 3}0.000{col 57}{space 4} .0640202{col 70}{space 3}  .075751
{txt}ln_dist_capital {c |}{col 17}{res}{space 2}-.0426483{col 29}{space 2} .0035026{col 40}{space 1}  -12.18{col 49}{space 3}0.000{col 57}{space 4}-.0495135{col 70}{space 3}-.0357832
{txt}{space 2}capital_depto {c |}{col 17}{res}{space 2}-.4006274{col 29}{space 2} .0151839{col 40}{space 1}  -26.38{col 49}{space 3}0.000{col 57}{space 4}-.4303884{col 70}{space 3}-.3708663
{txt}{space 6}medialuna {c |}{col 17}{res}{space 2}-.2935549{col 29}{space 2} .0046712{col 40}{space 1}  -62.84{col 49}{space 3}0.000{col 57}{space 4}-.3027107{col 70}{space 3}-.2843991
{txt}{space 6}Inscritos {c |}{col 17}{res}{space 2} 3.09e-06{col 29}{space 2} .0000505{col 40}{space 1}    0.06{col 49}{space 3}0.951{col 57}{space 4}-.0000959{col 70}{space 3} .0001021
{txt}{space 2}analfabetismo {c |}{col 17}{res}{space 2} .0092742{col 29}{space 2} .0007902{col 40}{space 1}   11.74{col 49}{space 3}0.000{col 57}{space 4} .0077255{col 70}{space 3}  .010823
{txt}{space 8}ed_prim {c |}{col 17}{res}{space 2} .0182771{col 29}{space 2} .0004993{col 40}{space 1}   36.60{col 49}{space 3}0.000{col 57}{space 4} .0172984{col 70}{space 3} .0192557
{txt}{space 9}ed_sec {c |}{col 17}{res}{space 2} .0053295{col 29}{space 2} .0004434{col 40}{space 1}   12.02{col 49}{space 3}0.000{col 57}{space 4} .0044605{col 70}{space 3} .0061985
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}Sorting dataset on trep_date_ulttrans_norm...
Note: This step is omitted if dataset already sorted by trep_date_ulttrans_norm.
{res}
{txt}Binscatter plot
Bin selection method: IMSE-optimal plug-in choice
Placement: Quantile-spaced
Derivative: 0
Output file: temp.dta

{hline 30}{c TT}{hline 15}
{lalign 1:# of observations}{col 30} {c |} {col 32}{res}  32911
{txt}{lalign 1:# of distinct values}{col 30} {c |} {col 32}{res}  10708
{txt}{lalign 1:# of clusters}{col 30} {c |} {col 32}{res}      .
{txt}{hline 30}{c +}{hline 15}
{lalign 1:Bin selection:}{col 30} {c |} 
{ralign 29:Degree of polynomial}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of smoothness constraints}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of bins}{col 30} {c |} {col 32}{res}     35
{txt}{hline 30}{c BT}{hline 15}

{hline 9}{c TT}{hline 30}
{col 10}{c |}{col 17}p{col 25}s{col 33}df
{hline 9}{c +}{hline 30}
{lalign 1: dots}{col 10}{c |}{col 17}0{col 25}0{col 33}35
{hline 9}{c BT}{hline 30}
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}          32,876
{txt}{col 9}from master{col 30}{res}          32,876{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}matched{col 30}{res}              35{txt}  (_merge==3)
{col 5}{hline 41}
{res}
Local Polynomial Regression Estimation and Inference.

{txt}{lalign 1: Sample size                              (n=)    }{col 19}{res}          32911
{txt}{lalign 1: Polynomial order for point estimation    (p=)    }{col 19}{res}              1
{txt}{lalign 1: Order of derivative estimated            (v=)    }{col 19}{res}              0
{txt}{lalign 1: Polynomial order for confidence interval (q=)    }{col 19}{res}              2
{txt}{lalign 1: Kernel function                                  }{col 19}{res}{ralign 15: Epanechnikov}
{txt}{lalign 1: Bandwidth selection method                       }{col 19}{res}{ralign 15: imse-dpi}

{txt}{hline 72}
{ralign 4: }{col 4}{ralign 10: }{col 14}{ralign 10: }{col 24}{ralign 8: }{col 32}{ralign 10: Point}{col 42}{ralign 10: Std.}{col 52}{ralign 20: Robust B.C.}{col 72}
{ralign 4: }{col 4}{ralign 10: eval}{col 14}{ralign 10: bw}{col 24}{ralign 8: Eff.n}{col 32}{ralign 10: Est.}{col 42}{ralign 10: Error}{col 52}{ralign 20: 95% Conf. Interval}{col 72}
{hline 72}
   1{col 4}{res}   -1.3374{col 14}    7.9666{col 24}   32867{col 32}    0.0469{col 42}    0.0046{col 52}    0.0188{col 62}    0.0485{col 72}
{txt}   2{col 4}{res}   -0.8215{col 14}    7.9666{col 24}   32867{col 32}    0.0741{col 42}    0.0031{col 52}    0.0620{col 62}    0.0767{col 72}
{txt}   3{col 4}{res}   -0.6906{col 14}    7.9666{col 24}   32867{col 32}    0.0810{col 42}    0.0028{col 52}    0.0719{col 62}    0.0840{col 72}
{txt}   4{col 4}{res}   -0.6070{col 14}    7.9666{col 24}   32867{col 32}    0.0853{col 42}    0.0026{col 52}    0.0780{col 62}    0.0888{col 72}
{txt}   5{col 4}{res}   -0.5419{col 14}    7.9666{col 24}   32867{col 32}    0.0886{col 42}    0.0024{col 52}    0.0826{col 62}    0.0924{col 72}
{txt}{hline 72}
   6{col 4}{res}   -0.4868{col 14}    7.9666{col 24}   32867{col 32}    0.0915{col 42}    0.0023{col 52}    0.0864{col 62}    0.0956{col 72}
{txt}   7{col 4}{res}   -0.4370{col 14}    7.9666{col 24}   32867{col 32}    0.0941{col 42}    0.0022{col 52}    0.0898{col 62}    0.0984{col 72}
{txt}   8{col 4}{res}   -0.3910{col 14}    7.9666{col 24}   32867{col 32}    0.0964{col 42}    0.0021{col 52}    0.0928{col 62}    0.1010{col 72}
{txt}   9{col 4}{res}   -0.3475{col 14}    7.9666{col 24}   32867{col 32}    0.0987{col 42}    0.0020{col 52}    0.0956{col 62}    0.1035{col 72}
{txt}  10{col 4}{res}   -0.3081{col 14}    7.9666{col 24}   32867{col 32}    0.1007{col 42}    0.0020{col 52}    0.0981{col 62}    0.1057{col 72}
{txt}{hline 72}
  11{col 4}{res}   -0.2693{col 14}    7.9666{col 24}   32867{col 32}    0.1027{col 42}    0.0019{col 52}    0.1005{col 62}    0.1079{col 72}
{txt}  12{col 4}{res}   -0.2328{col 14}    7.9666{col 24}   32867{col 32}    0.1045{col 42}    0.0018{col 52}    0.1028{col 62}    0.1100{col 72}
{txt}  13{col 4}{res}   -0.1973{col 14}    7.9666{col 24}   32867{col 32}    0.1063{col 42}    0.0018{col 52}    0.1049{col 62}    0.1120{col 72}
{txt}  14{col 4}{res}   -0.1634{col 14}    7.9666{col 24}   32867{col 32}    0.1081{col 42}    0.0018{col 52}    0.1069{col 62}    0.1139{col 72}
{txt}  15{col 4}{res}   -0.1287{col 14}    7.9666{col 24}   32867{col 32}    0.1098{col 42}    0.0017{col 52}    0.1089{col 62}    0.1159{col 72}
{txt}{hline 72}
  16{col 4}{res}   -0.0953{col 14}    7.9666{col 24}   32867{col 32}    0.1115{col 42}    0.0017{col 52}    0.1108{col 62}    0.1178{col 72}
{txt}  17{col 4}{res}   -0.0612{col 14}    7.9666{col 24}   32867{col 32}    0.1132{col 42}    0.0017{col 52}    0.1127{col 62}    0.1197{col 72}
{txt}  18{col 4}{res}   -0.0256{col 14}    7.9666{col 24}   32867{col 32}    0.1151{col 42}    0.0017{col 52}    0.1146{col 62}    0.1216{col 72}
{txt}  19{col 4}{res}    0.0096{col 14}    7.9666{col 24}   32867{col 32}    0.1168{col 42}    0.0017{col 52}    0.1165{col 62}    0.1236{col 72}
{txt}  20{col 4}{res}    0.0459{col 14}    7.9666{col 24}   32867{col 32}    0.1187{col 42}    0.0017{col 52}    0.1185{col 62}    0.1256{col 72}
{txt}{hline 72}
  21{col 4}{res}    0.0831{col 14}    7.9666{col 24}   32867{col 32}    0.1205{col 42}    0.0017{col 52}    0.1204{col 62}    0.1276{col 72}
{txt}  22{col 4}{res}    0.1211{col 14}    7.9666{col 24}   32868{col 32}    0.1225{col 42}    0.0017{col 52}    0.1223{col 62}    0.1296{col 72}
{txt}  23{col 4}{res}    0.1594{col 14}    7.9666{col 24}   32868{col 32}    0.1244{col 42}    0.0017{col 52}    0.1242{col 62}    0.1317{col 72}
{txt}  24{col 4}{res}    0.1993{col 14}    7.9666{col 24}   32870{col 32}    0.1264{col 42}    0.0017{col 52}    0.1262{col 62}    0.1338{col 72}
{txt}  25{col 4}{res}    0.2436{col 14}    7.9666{col 24}   32870{col 32}    0.1286{col 42}    0.0018{col 52}    0.1283{col 62}    0.1361{col 72}
{txt}{hline 72}
  26{col 4}{res}    0.2903{col 14}    7.9666{col 24}   32870{col 32}    0.1309{col 42}    0.0018{col 52}    0.1305{col 62}    0.1385{col 72}
{txt}  27{col 4}{res}    0.3401{col 14}    7.9666{col 24}   32870{col 32}    0.1334{col 42}    0.0019{col 52}    0.1328{col 62}    0.1410{col 72}
{txt}  28{col 4}{res}    0.3932{col 14}    7.9666{col 24}   32870{col 32}    0.1361{col 42}    0.0020{col 52}    0.1352{col 62}    0.1436{col 72}
{txt}  29{col 4}{res}    0.4505{col 14}    7.9666{col 24}   32870{col 32}    0.1389{col 42}    0.0021{col 52}    0.1376{col 62}    0.1464{col 72}
{txt}  30{col 4}{res}    0.5159{col 14}    7.9666{col 24}   32870{col 32}    0.1421{col 42}    0.0022{col 52}    0.1403{col 62}    0.1494{col 72}
{txt}{hline 72}
  31{col 4}{res}    0.5937{col 14}    7.9666{col 24}   32870{col 32}    0.1459{col 42}    0.0024{col 52}    0.1433{col 62}    0.1530{col 72}
{txt}  32{col 4}{res}    0.6879{col 14}    7.9666{col 24}   32870{col 32}    0.1506{col 42}    0.0026{col 52}    0.1467{col 62}    0.1571{col 72}
{txt}  33{col 4}{res}    0.8114{col 14}    7.9666{col 24}   32870{col 32}    0.1566{col 42}    0.0029{col 52}    0.1508{col 62}    0.1622{col 72}
{txt}  34{col 4}{res}    0.9915{col 14}    7.9666{col 24}   32870{col 32}    0.1652{col 42}    0.0034{col 52}    0.1558{col 62}    0.1690{col 72}
{txt}  35{col 4}{res}    2.2469{col 14}    7.9666{col 24}   32892{col 32}    0.2209{col 42}    0.0068{col 52}    0.1764{col 62}    0.2047{col 72}
{txt}{hline 72}
{res}
Local Polynomial Regression Estimation and Inference.

{txt}{lalign 1: Sample size                              (n=)    }{col 19}{res}          32911
{txt}{lalign 1: Polynomial order for point estimation    (p=)    }{col 19}{res}              1
{txt}{lalign 1: Order of derivative estimated            (v=)    }{col 19}{res}              0
{txt}{lalign 1: Polynomial order for confidence interval (q=)    }{col 19}{res}              2
{txt}{lalign 1: Kernel function                                  }{col 19}{res}{ralign 15: Epanechnikov}
{txt}{lalign 1: Bandwidth selection method                       }{col 19}{res}{ralign 15: imse-dpi}

{txt}{hline 72}
{ralign 4: }{col 4}{ralign 10: }{col 14}{ralign 10: }{col 24}{ralign 8: }{col 32}{ralign 10: Point}{col 42}{ralign 10: Std.}{col 52}{ralign 20: Robust B.C.}{col 72}
{ralign 4: }{col 4}{ralign 10: eval}{col 14}{ralign 10: bw}{col 24}{ralign 8: Eff.n}{col 32}{ralign 10: Est.}{col 42}{ralign 10: Error}{col 52}{ralign 20: 95% Conf. Interval}{col 72}
{hline 72}
   1{col 4}{res}   -1.5146{col 14}    4.3058{col 24}   32798{col 32}   -0.0559{col 42}    0.0077{col 52}    0.0691{col 62}    0.1122{col 72}
{txt}   2{col 4}{res}   -0.9259{col 14}    4.3058{col 24}   32848{col 32}    0.0039{col 42}    0.0050{col 52}    0.0318{col 62}    0.0542{col 72}
{txt}   3{col 4}{res}   -0.7898{col 14}    4.3058{col 24}   32850{col 32}    0.0192{col 42}    0.0045{col 52}    0.0333{col 62}    0.0523{col 72}
{txt}   4{col 4}{res}   -0.7048{col 14}    4.3058{col 24}   32852{col 32}    0.0289{col 42}    0.0042{col 52}    0.0360{col 62}    0.0531{col 72}
{txt}   5{col 4}{res}   -0.6417{col 14}    4.3058{col 24}   32855{col 32}    0.0361{col 42}    0.0039{col 52}    0.0388{col 62}    0.0547{col 72}
{txt}{hline 72}
   6{col 4}{res}   -0.5923{col 14}    4.3058{col 24}   32855{col 32}    0.0419{col 42}    0.0037{col 52}    0.0415{col 62}    0.0565{col 72}
{txt}   7{col 4}{res}   -0.5489{col 14}    4.3058{col 24}   32857{col 32}    0.0469{col 42}    0.0036{col 52}    0.0441{col 62}    0.0584{col 72}
{txt}   8{col 4}{res}   -0.5107{col 14}    4.3058{col 24}   32862{col 32}    0.0514{col 42}    0.0035{col 52}    0.0466{col 62}    0.0603{col 72}
{txt}   9{col 4}{res}   -0.4752{col 14}    4.3058{col 24}   32862{col 32}    0.0556{col 42}    0.0034{col 52}    0.0492{col 62}    0.0624{col 72}
{txt}  10{col 4}{res}   -0.4417{col 14}    4.3058{col 24}   32862{col 32}    0.0596{col 42}    0.0033{col 52}    0.0518{col 62}    0.0645{col 72}
{txt}{hline 72}
  11{col 4}{res}   -0.4105{col 14}    4.3058{col 24}   32862{col 32}    0.0633{col 42}    0.0032{col 52}    0.0543{col 62}    0.0666{col 72}
{txt}  12{col 4}{res}   -0.3802{col 14}    4.3058{col 24}   32862{col 32}    0.0669{col 42}    0.0031{col 52}    0.0568{col 62}    0.0688{col 72}
{txt}  13{col 4}{res}   -0.3510{col 14}    4.3058{col 24}   32862{col 32}    0.0704{col 42}    0.0030{col 52}    0.0594{col 62}    0.0711{col 72}
{txt}  14{col 4}{res}   -0.3244{col 14}    4.3058{col 24}   32862{col 32}    0.0736{col 42}    0.0029{col 52}    0.0618{col 62}    0.0732{col 72}
{txt}  15{col 4}{res}   -0.2981{col 14}    4.3058{col 24}   32862{col 32}    0.0768{col 42}    0.0029{col 52}    0.0643{col 62}    0.0755{col 72}
{txt}{hline 72}
  16{col 4}{res}   -0.2716{col 14}    4.3058{col 24}   32862{col 32}    0.0800{col 42}    0.0028{col 52}    0.0668{col 62}    0.0778{col 72}
{txt}  17{col 4}{res}   -0.2474{col 14}    4.3058{col 24}   32862{col 32}    0.0829{col 42}    0.0027{col 52}    0.0692{col 62}    0.0800{col 72}
{txt}  18{col 4}{res}   -0.2227{col 14}    4.3058{col 24}   32862{col 32}    0.0859{col 42}    0.0027{col 52}    0.0717{col 62}    0.0824{col 72}
{txt}  19{col 4}{res}   -0.1988{col 14}    4.3058{col 24}   32862{col 32}    0.0888{col 42}    0.0026{col 52}    0.0742{col 62}    0.0847{col 72}
{txt}  20{col 4}{res}   -0.1757{col 14}    4.3058{col 24}   32862{col 32}    0.0917{col 42}    0.0026{col 52}    0.0767{col 62}    0.0871{col 72}
{txt}{hline 72}
  21{col 4}{res}   -0.1534{col 14}    4.3058{col 24}   32862{col 32}    0.0944{col 42}    0.0026{col 52}    0.0791{col 62}    0.0894{col 72}
{txt}  22{col 4}{res}   -0.1295{col 14}    4.3058{col 24}   32862{col 32}    0.0974{col 42}    0.0025{col 52}    0.0817{col 62}    0.0919{col 72}
{txt}  23{col 4}{res}   -0.1066{col 14}    4.3058{col 24}   32862{col 32}    0.1002{col 42}    0.0025{col 52}    0.0843{col 62}    0.0944{col 72}
{txt}  24{col 4}{res}   -0.0847{col 14}    4.3058{col 24}   32861{col 32}    0.1029{col 42}    0.0025{col 52}    0.0868{col 62}    0.0969{col 72}
{txt}  25{col 4}{res}   -0.0618{col 14}    4.3058{col 24}   32861{col 32}    0.1058{col 42}    0.0025{col 52}    0.0894{col 62}    0.0995{col 72}
{txt}{hline 72}
  26{col 4}{res}   -0.0378{col 14}    4.3058{col 24}   32861{col 32}    0.1088{col 42}    0.0024{col 52}    0.0922{col 62}    0.1023{col 72}
{txt}  27{col 4}{res}   -0.0136{col 14}    4.3058{col 24}   32861{col 32}    0.1118{col 42}    0.0024{col 52}    0.0951{col 62}    0.1052{col 72}
{txt}  28{col 4}{res}    0.0101{col 14}    4.3058{col 24}   32861{col 32}    0.1148{col 42}    0.0024{col 52}    0.0980{col 62}    0.1081{col 72}
{txt}  29{col 4}{res}    0.0346{col 14}    4.3058{col 24}   32861{col 32}    0.1179{col 42}    0.0024{col 52}    0.1010{col 62}    0.1111{col 72}
{txt}  30{col 4}{res}    0.0591{col 14}    4.3058{col 24}   32861{col 32}    0.1210{col 42}    0.0024{col 52}    0.1041{col 62}    0.1142{col 72}
{txt}{hline 72}
  31{col 4}{res}    0.0842{col 14}    4.3058{col 24}   32861{col 32}    0.1241{col 42}    0.0024{col 52}    0.1073{col 62}    0.1175{col 72}
{txt}  32{col 4}{res}    0.1098{col 14}    4.3058{col 24}   32861{col 32}    0.1274{col 42}    0.0024{col 52}    0.1105{col 62}    0.1208{col 72}
{txt}  33{col 4}{res}    0.1348{col 14}    4.3058{col 24}   32861{col 32}    0.1306{col 42}    0.0024{col 52}    0.1138{col 62}    0.1242{col 72}
{txt}  34{col 4}{res}    0.1614{col 14}    4.3058{col 24}   32861{col 32}    0.1340{col 42}    0.0024{col 52}    0.1173{col 62}    0.1277{col 72}
{txt}  35{col 4}{res}    0.1880{col 14}    4.3058{col 24}   32861{col 32}    0.1374{col 42}    0.0025{col 52}    0.1208{col 62}    0.1314{col 72}
{txt}{hline 72}
  36{col 4}{res}    0.2157{col 14}    4.3058{col 24}   32860{col 32}    0.1409{col 42}    0.0025{col 52}    0.1245{col 62}    0.1353{col 72}
{txt}  37{col 4}{res}    0.2465{col 14}    4.3058{col 24}   32860{col 32}    0.1449{col 42}    0.0025{col 52}    0.1287{col 62}    0.1396{col 72}
{txt}  38{col 4}{res}    0.2782{col 14}    4.3058{col 24}   32860{col 32}    0.1490{col 42}    0.0026{col 52}    0.1331{col 62}    0.1442{col 72}
{txt}  39{col 4}{res}    0.3099{col 14}    4.3058{col 24}   32860{col 32}    0.1532{col 42}    0.0026{col 52}    0.1376{col 62}    0.1488{col 72}
{txt}  40{col 4}{res}    0.3448{col 14}    4.3058{col 24}   32858{col 32}    0.1577{col 42}    0.0027{col 52}    0.1425{col 62}    0.1540{col 72}
{txt}{hline 72}
  41{col 4}{res}    0.3800{col 14}    4.3058{col 24}   32858{col 32}    0.1623{col 42}    0.0028{col 52}    0.1476{col 62}    0.1593{col 72}
{txt}  42{col 4}{res}    0.4171{col 14}    4.3058{col 24}   32857{col 32}    0.1672{col 42}    0.0028{col 52}    0.1530{col 62}    0.1650{col 72}
{txt}  43{col 4}{res}    0.4567{col 14}    4.3058{col 24}   32857{col 32}    0.1725{col 42}    0.0029{col 52}    0.1588{col 62}    0.1711{col 72}
{txt}  44{col 4}{res}    0.5001{col 14}    4.3058{col 24}   32857{col 32}    0.1782{col 42}    0.0031{col 52}    0.1652{col 62}    0.1778{col 72}
{txt}  45{col 4}{res}    0.5489{col 14}    4.3058{col 24}   32855{col 32}    0.1848{col 42}    0.0032{col 52}    0.1725{col 62}    0.1855{col 72}
{txt}{hline 72}
  46{col 4}{res}    0.6043{col 14}    4.3058{col 24}   32854{col 32}    0.1922{col 42}    0.0033{col 52}    0.1808{col 62}    0.1944{col 72}
{txt}  47{col 4}{res}    0.6674{col 14}    4.3058{col 24}   32852{col 32}    0.2008{col 42}    0.0035{col 52}    0.1903{col 62}    0.2045{col 72}
{txt}  48{col 4}{res}    0.7404{col 14}    4.3058{col 24}   32850{col 32}    0.2107{col 42}    0.0038{col 52}    0.2014{col 62}    0.2164{col 72}
{txt}  49{col 4}{res}    0.8312{col 14}    4.3058{col 24}   32848{col 32}    0.2232{col 42}    0.0041{col 52}    0.2152{col 62}    0.2312{col 72}
{txt}  50{col 4}{res}    0.9432{col 14}    4.3058{col 24}   32845{col 32}    0.2388{col 42}    0.0045{col 52}    0.2321{col 62}    0.2495{col 72}
{txt}{hline 72}
  51{col 4}{res}    1.1572{col 14}    4.3058{col 24}   32838{col 32}    0.2691{col 42}    0.0053{col 52}    0.2634{col 62}    0.2843{col 72}
{txt}  52{col 4}{res}    2.7336{col 14}    4.3058{col 24}   32695{col 32}    0.5114{col 42}    0.0121{col 52}    0.3464{col 62}    0.4311{col 72}
{txt}{hline 72}
  variable {bf}dots_isknot{sf} was {bf}{res}float{sf}{txt} now {bf}{res}byte{sf}
  {txt}variable {bf}lprobust_nh_controls{sf} was {bf}{res}double{sf}{txt} now {bf}{res}long{sf}
  {txt}variable {bf}lprobust_nh{sf} was {bf}{res}double{sf}{txt} now {bf}{res}long{sf}
  {txt}variable {bf}Pais{sf} was {bf}{res}str27{sf}{txt} now {bf}{res}str7{sf}
  {txt}variable {bf}Dep{sf} was {bf}{res}str22{sf}{txt} now {bf}{res}str10{sf}
  {txt}variable {bf}Prov{sf} was {bf}{res}str28{sf}{txt} now {bf}{res}str26{sf}
  {txt}variable {bf}Reci{sf} was {bf}{res}str73{sf}{txt} now {bf}{res}str69{sf}
{txt}  (1,612,639 bytes saved)
(saving in Stata 13 format)
{p 0 6 2}
(FYI, {bf:saveold} has options
{bf:version(12)} and {bf:version(11)} that
write files in older Stata formats)
{p_end}
(note: file data/outputs//semipar_WITHOUT_trimming_missingsMAX.dta not found)
{p 2 8 2}
note: variable label
"Votes for Unidad Cívica Solidaridad"
contains unicode and thus may not display well
in Stata 13.
{p_end}
{p 2 8 2}
note: variable label
"Votes for Partido Demócrata Cristiano"
contains unicode and thus may not display well
in Stata 13.
{p_end}
{p 2 8 2}
note: variable label
"Votes for Partido de Acción Nacional Boliviano"
contains unicode and thus may not display well
in Stata 13.
{p_end}
{p 2 8 2}
note: variable label
"Cómputo time stamp"
contains unicode and thus may not display well
in Stata 13.
{p_end}
file data/outputs//semipar_WITHOUT_trimming_missingsMAX.dta saved

{com}. 
.         * Figure B.1.a
.         *-------------
.                 use "data/outputs/semipar_WITHOUT_trimming_missingsMAX.dta", clear
{txt}
{com}.                 
.                 * X-axis locations for labels
.                 quietly sum trep_date_ulttrans
{txt}
{com}.                 local global_mean = r(mean)
{txt}
{com}.                 local global_sd = r(sd)
{txt}
{com}.                 local x1 = (tc(20oct2019 17:30:00) - `global_mean') / `global_sd'
{txt}
{com}.                 local x2 = (tc(20oct2019 18:30:00) - `global_mean') / `global_sd'
{txt}
{com}.                 local x3 = (tc(20oct2019 19:30:00) - `global_mean') / `global_sd'
{txt}
{com}.                 local x4 = (tc(20oct2019 20:30:00) - `global_mean') / `global_sd'
{txt}
{com}. 
.                 * Plot
.                 twoway (scatter dots_fit_nocontrols dots_x_nocontrols, ///
>                                 msymbol(Th) msize(vsmall) mcolor(midblue)) ///
>                         (line lprobust_gx_bc lprobust_eval, ///
>                                 lcolor(midblue) lwidth(medthick)) ///
>                         (scatter dots_fit dots_x, ///
>                                 msize(vsmall) mcolor(gs6)) ///
>                         (line lprobust_gx_bc_controls lprobust_eval_controls, ///
>                                 lcolor(gs6) lwidth(medthick)) ///
>                         (line lprobust_CI_l_rb lprobust_eval, ///
>                                 lpattern(dash) lcolor(midblue) lwidth(thin)) ///
>                         (line lprobust_CI_r_rb lprobust_eval, ///
>                                 lpattern(dash) lcolor(midblue) lwidth(thin)) ///
>                         (line lprobust_CI_l_rb_controls lprobust_eval_controls, ///
>                                 lpattern(dash) lcolor(gs6) lwidth(thin)) ///
>                         (line lprobust_CI_r_rb_controls lprobust_eval_controls, ///
>                                 lpattern(dash) lcolor(gs6) lwidth(thin)), ///
>                         legend(order(2 4) ring(0) pos(11) cols(1) lab(2 "No controls") ///
>                                 lab(4 "Education, region, and rurality controls")) ///
>                         xlabel(`x1' `" "10/20" "5:30"  "p.m." "' ///
>                                 `x2' `" "10/20" "6:30"  "p.m." "' ///
>                                 `x3' `" "10/20" "7:30"  "p.m." "' ///
>                                 `x4' `" "10/20" "8:30"  "p.m." "', labsize(small)) ///
>                         graphregion(color(white)) ///
>                         xsize(7) ysize(5.5) ///
>                         ylabel(, angle(0) nogrid)  ///
>                         ytitle("MAS Margin Over CC") ///
>                         xtitle("Last Transmission Time Stamp") ///
>                         title("")
{res}{txt}
{com}.                 graph export "outputs/generated/Figure_B1a.pdf", replace
{txt}(file outputs/generated/Figure_B1a.pdf written in PDF format)

{com}. 
.         * Figure B.1.b
.         *-------------
.                 use "data/outputs/semipar_WITH_trimming_missingsDROPPED.dta", clear
{txt}
{com}.                 
.                 * X-axis locations for labels
.                 quietly sum trep_date_ulttrans
{txt}
{com}.                 local global_mean = r(mean)
{txt}
{com}.                 local global_sd = r(sd)
{txt}
{com}.                 local x1 = (tc(20oct2019 17:30:00) - `global_mean') / `global_sd'
{txt}
{com}.                 local x2 = (tc(20oct2019 18:30:00) - `global_mean') / `global_sd'
{txt}
{com}.                 local x3 = (tc(20oct2019 19:30:00) - `global_mean') / `global_sd'
{txt}
{com}.                 local x4 = (tc(20oct2019 20:30:00) - `global_mean') / `global_sd'
{txt}
{com}. 
.                 * Plot
.                 twoway (scatter dots_fit_nocontrols dots_x_nocontrols, ///
>                                 msymbol(Th) msize(vsmall) mcolor(midblue)) ///
>                         (line lprobust_gx_bc lprobust_eval, ///
>                                 lcolor(midblue) lwidth(medthick)) ///
>                         (scatter dots_fit dots_x, ///
>                                 msize(vsmall) mcolor(gs6)) ///
>                         (line lprobust_gx_bc_controls lprobust_eval_controls, ///
>                                 lcolor(gs6) lwidth(medthick)) ///
>                         (line lprobust_CI_l_rb lprobust_eval, ///
>                                 lpattern(dash) lcolor(midblue) lwidth(thin)) ///
>                         (line lprobust_CI_r_rb lprobust_eval, ///
>                                 lpattern(dash) lcolor(midblue) lwidth(thin)) ///
>                         (line lprobust_CI_l_rb_controls lprobust_eval_controls, ///
>                                 lpattern(dash) lcolor(gs6) lwidth(thin)) ///
>                         (line lprobust_CI_r_rb_controls lprobust_eval_controls, ///
>                                 lpattern(dash) lcolor(gs6) lwidth(thin)), ///
>                         legend(order(2 4) ring(0) pos(11) cols(1) lab(2 "No controls") ///
>                                 lab(4 "Education, region, and rurality controls")) ///
>                         xlabel(`x1' `" "10/20" "5:30"  "p.m." "' ///
>                                 `x2' `" "10/20" "6:30"  "p.m." "' ///
>                                 `x3' `" "10/20" "7:30"  "p.m." "' ///
>                                 `x4' `" "10/20" "8:30"  "p.m." "', labsize(small)) ///
>                         graphregion(color(white)) ///
>                         xsize(7) ysize(5.5) ///
>                         ylabel(, angle(0) nogrid)  ///
>                         ytitle("MAS Margin Over CC") ///
>                         xtitle("Last Transmission Time Stamp") ///
>                         title("")
{res}{txt}
{com}.                 graph export "outputs/generated/Figure_B1b.pdf", replace
{txt}(file outputs/generated/Figure_B1b.pdf written in PDF format)

{com}. 
.         * Figure B.1.c
.         *-------------
.                 use "data/outputs/semipar_WITH_trimming_missingsMIN.dta", clear
{txt}
{com}.                 
.                 * X-axis locations for labels
.                 quietly sum trep_date_ulttrans
{txt}
{com}.                 local global_mean = r(mean)
{txt}
{com}.                 local global_sd = r(sd)
{txt}
{com}.                 local x1 = (tc(20oct2019 17:30:00) - `global_mean') / `global_sd'
{txt}
{com}.                 local x2 = (tc(20oct2019 18:30:00) - `global_mean') / `global_sd'
{txt}
{com}.                 local x3 = (tc(20oct2019 19:30:00) - `global_mean') / `global_sd'
{txt}
{com}.                 local x4 = (tc(20oct2019 20:30:00) - `global_mean') / `global_sd'
{txt}
{com}. 
.                 * Plot
.                 twoway (scatter dots_fit_nocontrols dots_x_nocontrols, ///
>                                 msymbol(Th) msize(vsmall) mcolor(midblue)) ///
>                         (line lprobust_gx_bc lprobust_eval, ///
>                                 lcolor(midblue) lwidth(medthick)) ///
>                         (scatter dots_fit dots_x, ///
>                                 msize(vsmall) mcolor(gs6)) ///
>                         (line lprobust_gx_bc_controls lprobust_eval_controls, ///
>                                 lcolor(gs6) lwidth(medthick)) ///
>                         (line lprobust_CI_l_rb lprobust_eval, ///
>                                 lpattern(dash) lcolor(midblue) lwidth(thin)) ///
>                         (line lprobust_CI_r_rb lprobust_eval, ///
>                                 lpattern(dash) lcolor(midblue) lwidth(thin)) ///
>                         (line lprobust_CI_l_rb_controls lprobust_eval_controls, ///
>                                 lpattern(dash) lcolor(gs6) lwidth(thin)) ///
>                         (line lprobust_CI_r_rb_controls lprobust_eval_controls, ///
>                                 lpattern(dash) lcolor(gs6) lwidth(thin)), ///
>                         legend(order(2 4) ring(0) pos(11) cols(1) lab(2 "No controls") ///
>                                 lab(4 "Education, region, and rurality controls")) ///
>                         xlabel(`x1' `" "10/20" "5:30"  "p.m." "' ///
>                                 `x2' `" "10/20" "6:30"  "p.m." "' ///
>                                 `x3' `" "10/20" "7:30"  "p.m." "' ///
>                                 `x4' `" "10/20" "8:30"  "p.m." "', labsize(small)) ///
>                         graphregion(color(white)) ///
>                         xsize(7) ysize(5.5) ///
>                         ylabel(, angle(0) nogrid)  ///
>                         ytitle("MAS Margin Over CC") ///
>                         xtitle("Last Transmission Time Stamp") ///
>                         title("")
{res}{txt}
{com}.                 graph export "outputs/generated/Figure_B1c.pdf", replace
{txt}(file outputs/generated/Figure_B1c.pdf written in PDF format)

{com}. 
.         * Figure B.1.d
.         *-------------
.                 use "data/outputs/semipar_WITH_trimming_missingsMAX.dta", clear
{txt}
{com}.                 
.                 * X-axis locations for labels
.                 quietly sum trep_date_ulttrans
{txt}
{com}.                 local global_mean = r(mean)
{txt}
{com}.                 local global_sd = r(sd)
{txt}
{com}.                 local x1 = (tc(20oct2019 17:30:00) - `global_mean') / `global_sd'
{txt}
{com}.                 local x2 = (tc(20oct2019 18:30:00) - `global_mean') / `global_sd'
{txt}
{com}.                 local x3 = (tc(20oct2019 19:30:00) - `global_mean') / `global_sd'
{txt}
{com}.                 local x4 = (tc(20oct2019 20:30:00) - `global_mean') / `global_sd'
{txt}
{com}. 
.                 * Plot
.                 twoway (scatter dots_fit_nocontrols dots_x_nocontrols, ///
>                                 msymbol(Th) msize(vsmall) mcolor(midblue)) ///
>                         (line lprobust_gx_bc lprobust_eval, ///
>                                 lcolor(midblue) lwidth(medthick)) ///
>                         (scatter dots_fit dots_x, ///
>                                 msize(vsmall) mcolor(gs6)) ///
>                         (line lprobust_gx_bc_controls lprobust_eval_controls, ///
>                                 lcolor(gs6) lwidth(medthick)) ///
>                         (line lprobust_CI_l_rb lprobust_eval, ///
>                                 lpattern(dash) lcolor(midblue) lwidth(thin)) ///
>                         (line lprobust_CI_r_rb lprobust_eval, ///
>                                 lpattern(dash) lcolor(midblue) lwidth(thin)) ///
>                         (line lprobust_CI_l_rb_controls lprobust_eval_controls, ///
>                                 lpattern(dash) lcolor(gs6) lwidth(thin)) ///
>                         (line lprobust_CI_r_rb_controls lprobust_eval_controls, ///
>                                 lpattern(dash) lcolor(gs6) lwidth(thin)), ///
>                         legend(order(2 4) ring(0) pos(11) cols(1) lab(2 "No controls") ///
>                                 lab(4 "Education, region, and rurality controls")) ///
>                         xlabel(`x1' `" "10/20" "5:30"  "p.m." "' ///
>                                 `x2' `" "10/20" "6:30"  "p.m." "' ///
>                                 `x3' `" "10/20" "7:30"  "p.m." "' ///
>                                 `x4' `" "10/20" "8:30"  "p.m." "', labsize(small)) ///
>                         graphregion(color(white)) ///
>                         xsize(7) ysize(5.5) ///
>                         ylabel(, angle(0) nogrid)  ///
>                         ytitle("MAS Margin Over CC") ///
>                         xtitle("Last Transmission Time Stamp") ///
>                         title("")
{res}{txt}
{com}.                 graph export "outputs/generated/Figure_B1d.pdf", replace
{txt}(file outputs/generated/Figure_B1d.pdf written in PDF format)

{com}. 
.         * Figure B.1.e
.         *-------------
.                 use "data/outputs/computo_ulttranstrepdate_missingsatmunmedian.dta", clear
{txt}
{com}. 
.                 * Switch trep date from global max to missing
.                 replace trep_date_ulttrans = . if trep_missing_date == 1
{txt}(373 real changes made, 373 to missing)

{com}. 
.                 * Replace missing dates with max in the municipio 
.                 bys Pais Dep Prov Muni: egen max_date = max(trep_date_ulttrans)
{txt}(4 missing values generated)

{com}.                 replace trep_date_ulttrans = max_date if trep_missing_date == 1
{txt}(373 real changes made)

{com}.                 drop max_date   
{txt}
{com}. 
.                 drop total* pcs* mshare* cshare*
{txt}
{com}.                 gen total_nbnn = CC + FPV + MTS + UCS + MAS + F + PDC + MNR + PANBOL
{txt}
{com}.                 *---*
.                 gen mshare_nbnn_so = MAS / total_nbnn
{txt}(4 missing values generated)

{com}.                 gen cshare_nbnn_so = CC / total_nbnn
{txt}(4 missing values generated)

{com}.                 gen x = runiform()
{txt}
{com}.                 sort trep_date_ulttrans x
{txt}
{com}.                 drop x
{txt}
{com}.                 gen cumsumtotal_nbnn = sum(total_nbnn)
{txt}
{com}.                 *---*
.                 egen maxcumsumtotal_nbnn = max(cumsumtotal_nbnn)
{txt}
{com}.                 gen pcs_nbnn_so = cumsumtotal_nbnn / maxcumsumtotal_nbnn
{txt}
{com}.                 drop cumsumtotal_nbnn maxcumsumtotal_nbnn
{txt}
{com}. 
.                 * Trimming
.                 cumul trep_date_ulttrans, gen(cum_date)
{txt}
{com}.                 drop if cum_date <= 0.02 | cum_date >= 0.98
{txt}(1,387 observations deleted)

{com}.                 drop cum_date
{txt}
{com}. 
.                 gen mmargin_nbnn_so = mshare_nbnn_so - cshare_nbnn_so
{txt}(1 missing value generated)

{com}. 
.                 * Without this, Stata can't calculate the right ROT bandwidth
.                 su trep_date_ulttrans, d

                {txt}Last transmission time stamp
{hline 61}
      Percentiles      Smallest
 1%    {res} 1.89e+12       1.89e+12
{txt} 5%    {res} 1.89e+12       1.89e+12
{txt}10%    {res} 1.89e+12       1.89e+12       {txt}Obs         {res}     33,168
{txt}25%    {res} 1.89e+12       1.89e+12       {txt}Sum of Wgt. {res}     33,168

{txt}50%    {res} 1.89e+12                      {txt}Mean          {res} 1.89e+12
                        {txt}Largest       Std. Dev.     {res}  2544261
{txt}75%    {res} 1.89e+12       1.89e+12
{txt}90%    {res} 1.89e+12       1.89e+12       {txt}Variance      {res} 6.47e+12
{txt}95%    {res} 1.89e+12       1.89e+12       {txt}Skewness      {res} .1821189
{txt}99%    {res} 1.89e+12       1.89e+12       {txt}Kurtosis      {res} 2.853456
{txt}
{com}.                 local global_mean = r(mean)
{txt}
{com}.                 local global_sd = r(sd)
{txt}
{com}.                 gen trep_date_ulttrans_norm = (trep_date_ulttrans - `global_mean') / `global_sd'
{txt}
{com}. 
.                 * Binned data using binsreg
.                 binsreg mmargin_nbnn_so trep_date_ulttrans_norm, ///
>                         savedata(temp) replace
{txt}Sorting dataset on trep_date_ulttrans_norm...
Note: This step is omitted if dataset already sorted by trep_date_ulttrans_norm.
{res}
{txt}Binscatter plot
Bin selection method: IMSE-optimal plug-in choice
Placement: Quantile-spaced
Derivative: 0
Output file: temp.dta

{hline 30}{c TT}{hline 15}
{lalign 1:# of observations}{col 30} {c |} {col 32}{res}  33167
{txt}{lalign 1:# of distinct values}{col 30} {c |} {col 32}{res}  10264
{txt}{lalign 1:# of clusters}{col 30} {c |} {col 32}{res}      .
{txt}{hline 30}{c +}{hline 15}
{lalign 1:Bin selection:}{col 30} {c |} 
{ralign 29:Degree of polynomial}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of smoothness constraints}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of bins}{col 30} {c |} {col 32}{res}     41
{txt}{hline 30}{c BT}{hline 15}

{hline 9}{c TT}{hline 30}
{col 10}{c |}{col 17}p{col 25}s{col 33}df
{hline 9}{c +}{hline 30}
{lalign 1: dots}{col 10}{c |}{col 17}0{col 25}0{col 33}41
{hline 9}{c BT}{hline 30}
{res}{txt}
{com}. 
.                 gen dots_binid = _n
{txt}
{com}.                 merge 1:1 dots_binid using "temp.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}          33,127
{txt}{col 9}from master{col 30}{res}          33,127{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}matched{col 30}{res}              41{txt}  (_merge==3)
{col 5}{hline 41}

{com}.                 drop _merge
{txt}
{com}.                 erase "temp.dta"
{txt}
{com}. 
.                 * lp robust: partialed out
.                 lprobust mmargin_nbnn_so trep_date_ulttrans_norm, ///
>                         genvars eval(dots_x)
{res}
Local Polynomial Regression Estimation and Inference.

{txt}{lalign 1: Sample size                              (n=)    }{col 19}{res}          33167
{txt}{lalign 1: Polynomial order for point estimation    (p=)    }{col 19}{res}              1
{txt}{lalign 1: Order of derivative estimated            (v=)    }{col 19}{res}              0
{txt}{lalign 1: Polynomial order for confidence interval (q=)    }{col 19}{res}              2
{txt}{lalign 1: Kernel function                                  }{col 19}{res}{ralign 15: Epanechnikov}
{txt}{lalign 1: Bandwidth selection method                       }{col 19}{res}{ralign 15: imse-dpi}

{txt}{hline 72}
{ralign 4: }{col 4}{ralign 10: }{col 14}{ralign 10: }{col 24}{ralign 8: }{col 32}{ralign 10: Point}{col 42}{ralign 10: Std.}{col 52}{ralign 20: Robust B.C.}{col 72}
{ralign 4: }{col 4}{ralign 10: eval}{col 14}{ralign 10: bw}{col 24}{ralign 8: Eff.n}{col 32}{ralign 10: Est.}{col 42}{ralign 10: Error}{col 52}{ralign 20: 95% Conf. Interval}{col 72}
{hline 72}
   1{col 4}{res}   -2.2091{col 14}    0.7723{col 24}    2229{col 32}    0.1960{col 42}    0.0163{col 52}    0.1699{col 62}    0.2434{col 72}
{txt}   2{col 4}{res}   -1.7249{col 14}    0.7723{col 24}    5495{col 32}    0.0966{col 42}    0.0097{col 52}    0.0624{col 62}    0.1091{col 72}
{txt}   3{col 4}{res}   -1.4841{col 14}    0.7723{col 24}    7739{col 32}    0.0568{col 42}    0.0077{col 52}    0.0194{col 62}    0.0564{col 72}
{txt}   4{col 4}{res}   -1.3191{col 14}    0.7723{col 24}    9491{col 32}    0.0383{col 42}    0.0065{col 52}    0.0045{col 62}    0.0361{col 72}
{txt}   5{col 4}{res}   -1.1917{col 14}    0.7723{col 24}   10937{col 32}    0.0305{col 42}    0.0058{col 52}    0.0002{col 62}    0.0285{col 72}
{txt}{hline 72}
   6{col 4}{res}   -1.0843{col 14}    0.7723{col 24}   12189{col 32}    0.0289{col 42}    0.0052{col 52}    0.0014{col 62}    0.0274{col 72}
{txt}   7{col 4}{res}   -0.9911{col 14}    0.7723{col 24}   13227{col 32}    0.0310{col 42}    0.0048{col 52}    0.0062{col 62}    0.0307{col 72}
{txt}   8{col 4}{res}   -0.9035{col 14}    0.7723{col 24}   14202{col 32}    0.0345{col 42}    0.0045{col 52}    0.0134{col 62}    0.0366{col 72}
{txt}   9{col 4}{res}   -0.8243{col 14}    0.7723{col 24}   14994{col 32}    0.0391{col 42}    0.0043{col 52}    0.0200{col 62}    0.0423{col 72}
{txt}  10{col 4}{res}   -0.7478{col 14}    0.7723{col 24}   15709{col 32}    0.0442{col 42}    0.0041{col 52}    0.0278{col 62}    0.0494{col 72}
{txt}{hline 72}
  11{col 4}{res}   -0.6743{col 14}    0.7723{col 24}   16346{col 32}    0.0495{col 42}    0.0039{col 52}    0.0364{col 62}    0.0574{col 72}
{txt}  12{col 4}{res}   -0.6061{col 14}    0.7723{col 24}   16852{col 32}    0.0549{col 42}    0.0038{col 52}    0.0443{col 62}    0.0648{col 72}
{txt}  13{col 4}{res}   -0.5377{col 14}    0.7723{col 24}   17357{col 32}    0.0606{col 42}    0.0037{col 52}    0.0521{col 62}    0.0722{col 72}
{txt}  14{col 4}{res}   -0.4741{col 14}    0.7723{col 24}   17722{col 32}    0.0664{col 42}    0.0036{col 52}    0.0582{col 62}    0.0779{col 72}
{txt}  15{col 4}{res}   -0.4114{col 14}    0.7723{col 24}   18067{col 32}    0.0723{col 42}    0.0036{col 52}    0.0640{col 62}    0.0835{col 72}
{txt}{hline 72}
  16{col 4}{res}   -0.3497{col 14}    0.7723{col 24}   18320{col 32}    0.0782{col 42}    0.0035{col 52}    0.0696{col 62}    0.0888{col 72}
{txt}  17{col 4}{res}   -0.2913{col 14}    0.7723{col 24}   18507{col 32}    0.0839{col 42}    0.0035{col 52}    0.0749{col 62}    0.0940{col 72}
{txt}  18{col 4}{res}   -0.2297{col 14}    0.7723{col 24}   18588{col 32}    0.0899{col 42}    0.0034{col 52}    0.0802{col 62}    0.0991{col 72}
{txt}  19{col 4}{res}   -0.1723{col 14}    0.7723{col 24}   18661{col 32}    0.0955{col 42}    0.0034{col 52}    0.0853{col 62}    0.1042{col 72}
{txt}  20{col 4}{res}   -0.1139{col 14}    0.7723{col 24}   18649{col 32}    0.1011{col 42}    0.0034{col 52}    0.0904{col 62}    0.1093{col 72}
{txt}{hline 72}
  21{col 4}{res}   -0.0518{col 14}    0.7723{col 24}   18600{col 32}    0.1071{col 42}    0.0034{col 52}    0.0961{col 62}    0.1149{col 72}
{txt}  22{col 4}{res}    0.0105{col 14}    0.7723{col 24}   18476{col 32}    0.1130{col 42}    0.0034{col 52}    0.1020{col 62}    0.1209{col 72}
{txt}  23{col 4}{res}    0.0728{col 14}    0.7723{col 24}   18375{col 32}    0.1188{col 42}    0.0034{col 52}    0.1077{col 62}    0.1267{col 72}
{txt}  24{col 4}{res}    0.1371{col 14}    0.7723{col 24}   18131{col 32}    0.1247{col 42}    0.0035{col 52}    0.1141{col 62}    0.1332{col 72}
{txt}  25{col 4}{res}    0.2023{col 14}    0.7723{col 24}   17871{col 32}    0.1306{col 42}    0.0035{col 52}    0.1207{col 62}    0.1401{col 72}
{txt}{hline 72}
  26{col 4}{res}    0.2679{col 14}    0.7723{col 24}   17533{col 32}    0.1367{col 42}    0.0036{col 52}    0.1274{col 62}    0.1470{col 72}
{txt}  27{col 4}{res}    0.3340{col 14}    0.7723{col 24}   17129{col 32}    0.1425{col 42}    0.0036{col 52}    0.1349{col 62}    0.1548{col 72}
{txt}  28{col 4}{res}    0.4040{col 14}    0.7723{col 24}   16670{col 32}    0.1484{col 42}    0.0037{col 52}    0.1424{col 62}    0.1627{col 72}
{txt}  29{col 4}{res}    0.4753{col 14}    0.7723{col 24}   16071{col 32}    0.1541{col 42}    0.0038{col 52}    0.1492{col 62}    0.1699{col 72}
{txt}  30{col 4}{res}    0.5545{col 14}    0.7723{col 24}   15466{col 32}    0.1601{col 42}    0.0039{col 52}    0.1557{col 62}    0.1770{col 72}
{txt}{hline 72}
  31{col 4}{res}    0.6365{col 14}    0.7723{col 24}   14696{col 32}    0.1657{col 42}    0.0040{col 52}    0.1620{col 62}    0.1839{col 72}
{txt}  32{col 4}{res}    0.7231{col 14}    0.7723{col 24}   13976{col 32}    0.1716{col 42}    0.0042{col 52}    0.1663{col 62}    0.1889{col 72}
{txt}  33{col 4}{res}    0.8150{col 14}    0.7723{col 24}   13103{col 32}    0.1775{col 42}    0.0044{col 52}    0.1691{col 62}    0.1926{col 72}
{txt}  34{col 4}{res}    0.9125{col 14}    0.7723{col 24}   12211{col 32}    0.1840{col 42}    0.0046{col 52}    0.1711{col 62}    0.1956{col 72}
{txt}  35{col 4}{res}    1.0180{col 14}    0.7723{col 24}   11264{col 32}    0.1914{col 42}    0.0049{col 52}    0.1748{col 62}    0.2005{col 72}
{txt}{hline 72}
  36{col 4}{res}    1.1386{col 14}    0.7723{col 24}   10142{col 32}    0.2006{col 42}    0.0051{col 52}    0.1800{col 62}    0.2074{col 72}
{txt}  37{col 4}{res}    1.2785{col 14}    0.7723{col 24}    8930{col 32}    0.2115{col 42}    0.0055{col 52}    0.1896{col 62}    0.2193{col 72}
{txt}  38{col 4}{res}    1.4429{col 14}    0.7723{col 24}    7560{col 32}    0.2264{col 42}    0.0059{col 52}    0.2042{col 62}    0.2364{col 72}
{txt}  39{col 4}{res}    1.6498{col 14}    0.7723{col 24}    5989{col 32}    0.2515{col 42}    0.0067{col 52}    0.2299{col 62}    0.2646{col 72}
{txt}  40{col 4}{res}    1.9129{col 14}    0.7723{col 24}    4312{col 32}    0.2865{col 42}    0.0080{col 52}    0.2660{col 62}    0.3056{col 72}
{txt}{hline 72}
  41{col 4}{res}    2.4105{col 14}    0.7723{col 24}    2044{col 32}    0.3543{col 42}    0.0129{col 52}    0.3281{col 62}    0.3885{col 72}
{txt}{hline 72}

{com}. 
.                 local x1 = (tc(20oct2019 17:30:00) - `global_mean') / `global_sd'
{txt}
{com}.                 local x2 = (tc(20oct2019 18:30:00) - `global_mean') / `global_sd'
{txt}
{com}.                 local x3 = (tc(20oct2019 19:30:00) - `global_mean') / `global_sd'
{txt}
{com}.                 local x4 = (tc(20oct2019 20:30:00) - `global_mean') / `global_sd'
{txt}
{com}. 
.                 local k=1
{txt}
{com}.                 foreach vl in 0.47 0.57 0.87 0.97 {c -(}
{txt}  2{com}.                         gen dif = abs(pcs_nbnn_so - `vl')
{txt}  3{com}. 
.                         sort dif
{txt}  4{com}.                         quietly sum trep_date_ulttrans_norm if _n == 1
{txt}  5{com}.                         local xline_`k' = r(mean)
{txt}  6{com}. 
.                         local k = `k' + 1
{txt}  7{com}.                         drop dif
{txt}  8{com}.                 {c )-}
{txt}
{com}. 
.                 twoway (scatter dots_fit dots_x, msize(vsmall) mcolor(midblue)) ///
>                         (line lprobust_gx_bc lprobust_eval, ///
>                                 lcolor(midblue) lwidth(medthick)) ///
>                         (line lprobust_CI_l_rb lprobust_eval, ///
>                                 lpattern(dash) lcolor(midblue) lwidth(thin)) ///
>                         (line lprobust_CI_r_rb lprobust_eval, ///
>                                 lpattern(dash) lcolor(midblue) lwidth(thin)), ///
>                         xlabel(`x1' `" "10/20" "5:30"  "p.m." "' ///
>                                 `x2' `" "10/20" "6:30"  "p.m." "' ///
>                                 `x3' `" "10/20" "7:30"  "p.m." "' ///
>                                 `x4' `" "10/20" "8:30"  "p.m." "', labsize(small)) ///
>                         xline(`xline_1' `xline_2' `xline_3' `xline_4', ///
>                                 lcolor(black) lpattern(dot)) ///
>                         text(0.37 `=`xline_1'-0.18' "0.47" ///
>                                 0.37 `=`xline_2'+0.18' "0.57" ///
>                                 0.37 `=`xline_3'-0.18' "0.87" ///
>                                 0.37 `=`xline_4'-0.18' "0.97", size(tiny) color(gs6)) ///
>                         graphregion(color(white)) ///
>                         xsize(7) ysize(5.5) ///
>                         ylabel(, angle(0) nogrid) ///
>                         ytitle("MAS Margin Over CC") ///
>                         xtitle("Last Transmission Time Stamp") ///
>                         legend(order(2) lab(2 "Non-parametric Fit")) legend(off)
{res}{txt}
{com}.                 graph export "outputs/generated/Figure_B1e.pdf", replace
{txt}(file outputs/generated/Figure_B1e.pdf written in PDF format)

{com}. 
. *------------------------------------------------------------------------------*
. timer off 2
{txt}
{com}. timer list 2
{res}   2:   3430.53 /        1 =    3430.5330
{txt}
{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}E:\Github\Bolivia\00_replication_files\log-files/2_Figure_B1.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}25 Jan 2022, 22:37:14
{txt}{.-}
{smcl}
{txt}{sf}{ul off}